浏览代码

Replaced 'equals' with more explicit ones.

Grzegorz Pabian 11 年之前
父节点
当前提交
8c301fa884
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      packages/ckeditor5-engine/tests/mvc/collection/collection.js

+ 6 - 6
packages/ckeditor5-engine/tests/mvc/collection/collection.js

@@ -15,11 +15,11 @@ describe( 'add', function() {
 
 
 		var box = getCollection();
 		var box = getCollection();
 
 
-		expect( box.length ).to.equals( 0 );
+		expect( box ).to.have.length( 0 );
 
 
 		box.add( getItem() );
 		box.add( getItem() );
 
 
-		expect( box.length ).to.equals( 1 );
+		expect( box ).to.have.length( 1 );
 
 
 		expect( box.get( 0 ) ).to.be.an.instanceof( Model );
 		expect( box.get( 0 ) ).to.be.an.instanceof( Model );
 	} );
 	} );
@@ -55,11 +55,11 @@ describe( 'remove', function() {
 
 
 		box.add( item );
 		box.add( item );
 
 
-		expect( box.length ).to.equals( 1 );
+		expect( box ).to.have.length( 1 );
 
 
 		box.remove( 0 );
 		box.remove( 0 );
 
 
-		expect( box.length ).to.equals( 0 );
+		expect( box ).to.have.length( 0 );
 	} );
 	} );
 
 
 	it( 'should remove the model by model', function() {
 	it( 'should remove the model by model', function() {
@@ -68,11 +68,11 @@ describe( 'remove', function() {
 
 
 		box.add( item );
 		box.add( item );
 
 
-		expect( box.length ).to.equals( 1 );
+		expect( box ).to.have.length( 1 );
 
 
 		box.remove( item );
 		box.remove( item );
 
 
-		expect( box.length ).to.equals( 0 );
+		expect( box ).to.have.length( 0 );
 	} );
 	} );
 
 
 	it( 'should fire the "remove" event', function() {
 	it( 'should fire the "remove" event', function() {