8
0
Quellcode durchsuchen

Changed to.be.equals to to.equals.

Piotr Jasiun vor 10 Jahren
Ursprung
Commit
a2e7345ce4

+ 3 - 3
packages/ckeditor5-utils/tests/document/attribute.js

@@ -42,7 +42,7 @@ describe( 'attribute', function() {
 		var attr1 = new Attribute( 'register', true );
 		var attr2 = new Attribute( 'register', true );
 
-		expect( attr1 ).to.be.equals( attr2 );
+		expect( attr1 ).to.equals( attr2 );
 		expect( attr1.isEqual( attr2 ) ).to.be.true;
 	} );
 
@@ -79,7 +79,7 @@ describe( 'attribute', function() {
 		var attr4 = new Attribute( 'register', true );
 
 		expect( attr1 ).to.not.be.equals( attr2 );
-		expect( attr2 ).to.be.equals( attr3 );
-		expect( attr3 ).to.be.equals( attr4 );
+		expect( attr2 ).to.equals( attr3 );
+		expect( attr3 ).to.equals( attr4 );
 	} );
 } );

+ 4 - 4
packages/ckeditor5-utils/tests/document/changeoperation.js

@@ -278,10 +278,10 @@ describe( 'ChangeOperation', function() {
 		var reverse = oppertaion.reverseOperation();
 
 		expect( reverse ).to.be.an.instanceof( ChangeOperation );
-		expect( reverse.baseVersion ).to.be.equals( 1 );
-		expect( reverse.ranges ).to.be.equals( ranges );
-		expect( reverse.oldAttr ).to.be.equals( newAttr );
-		expect( reverse.newAttr ).to.be.equals( oldAttr );
+		expect( reverse.baseVersion ).to.equals( 1 );
+		expect( reverse.ranges ).to.equals( ranges );
+		expect( reverse.oldAttr ).to.equals( newAttr );
+		expect( reverse.newAttr ).to.equals( oldAttr );
 	} );
 
 	it( 'should undo insert attribute by applying reverse operation', function() {

+ 1 - 1
packages/ckeditor5-utils/tests/document/character.js

@@ -45,7 +45,7 @@ describe( 'constructor', function() {
 		expect( character ).to.be.an.instanceof( Node );
 		expect( character ).to.have.property( 'character' ).that.equals( 'f' );
 		expect( character ).to.have.property( 'parent' ).that.equals( parent );
-		expect( character._getAttrCount() ).to.be.equals( 1 );
+		expect( character._getAttrCount() ).to.equals( 1 );
 		expect( character.getAttr( attr.key ) ).to.equals( attr.value );
 	} );
 } );

+ 3 - 3
packages/ckeditor5-utils/tests/document/element.js

@@ -52,7 +52,7 @@ describe( 'constructor', function() {
 		var element = new Element( 'elem', [], 'foo' );
 
 		expect( element ).to.have.property( 'name' ).that.equals( 'elem' );
-		expect( element.getChildCount() ).to.be.equals( 3 );
+		expect( element.getChildCount() ).to.equals( 3 );
 		expect( element.getChild( 0 ) ).to.have.property( 'character' ).that.equals( 'f' );
 		expect( element.getChild( 1 ) ).to.have.property( 'character' ).that.equals( 'o' );
 		expect( element.getChild( 2 ) ).to.have.property( 'character' ).that.equals( 'o' );
@@ -67,7 +67,7 @@ describe( 'insertChildren', function() {
 		element.insertChildren( 1, 'foo' );
 
 		expect( element ).to.have.property( 'name' ).that.equals( 'elem' );
-		expect( element.getChildCount() ).to.be.equals( 5 );
+		expect( element.getChildCount() ).to.equals( 5 );
 		expect( element.getChild( 0 ) ).to.have.property( 'character' ).that.equals( 'x' );
 		expect( element.getChild( 1 ) ).to.have.property( 'character' ).that.equals( 'f' );
 		expect( element.getChild( 2 ) ).to.have.property( 'character' ).that.equals( 'o' );
@@ -86,7 +86,7 @@ describe( 'removeChildren', function() {
 		var a = element.getChild( 4 );
 		element.removeChildren( 2, 3 );
 
-		expect( element.getChildCount() ).to.be.equals( 3 );
+		expect( element.getChildCount() ).to.equals( 3 );
 		expect( element.getChild( 0 ) ).to.have.property( 'character' ).that.equals( 'f' );
 		expect( element.getChild( 1 ) ).to.have.property( 'character' ).that.equals( 'o' );
 		expect( element.getChild( 2 ) ).to.have.property( 'character' ).that.equals( 'r' );

+ 3 - 3
packages/ckeditor5-utils/tests/document/insertoperation.js

@@ -111,9 +111,9 @@ describe( 'InsertOperation', function() {
 		var reverse = operation.reverseOperation();
 
 		expect( reverse ).to.be.an.instanceof( RemoveOperation );
-		expect( reverse.baseVersion ).to.be.equals( 1 );
-		expect( reverse.nodeList ).to.be.equals( nodeList );
-		expect( reverse.position ).to.be.equals( position );
+		expect( reverse.baseVersion ).to.equals( 1 );
+		expect( reverse.nodeList ).to.equals( nodeList );
+		expect( reverse.position ).to.equals( position );
 	} );
 
 	it( 'should undo insert node by applying reverse operation', function() {

+ 4 - 4
packages/ckeditor5-utils/tests/document/moveoperation.js

@@ -111,10 +111,10 @@ describe( 'MoveOperation', function() {
 		var reverse = operation.reverseOperation();
 
 		expect( reverse ).to.be.an.instanceof( MoveOperation );
-		expect( reverse.baseVersion ).to.be.equals( 1 );
-		expect( reverse.nodeList ).to.be.equals( nodeList );
-		expect( reverse.sourcePosition ).to.be.equals( targetPosition );
-		expect( reverse.targetPosition ).to.be.equals( sourcePosition );
+		expect( reverse.baseVersion ).to.equals( 1 );
+		expect( reverse.nodeList ).to.equals( nodeList );
+		expect( reverse.sourcePosition ).to.equals( targetPosition );
+		expect( reverse.targetPosition ).to.equals( sourcePosition );
 	} );
 
 	it( 'should move node by applying reverse operation', function() {

+ 2 - 2
packages/ckeditor5-utils/tests/document/node.js

@@ -238,7 +238,7 @@ describe( 'hasAttr', function() {
 		var parsedFoo = JSON.parse( JSON.stringify( foo ) );
 		var parsedBar = JSON.parse( JSON.stringify( b ) );
 
-		expect( parsedFoo.parent ).to.be.equals( null );
-		expect( parsedBar.parent ).to.be.equals( 'foo' );
+		expect( parsedFoo.parent ).to.equals( null );
+		expect( parsedBar.parent ).to.equals( 'foo' );
 	} );
 } );

+ 3 - 3
packages/ckeditor5-utils/tests/document/removeoperation.js

@@ -92,9 +92,9 @@ describe( 'RemoveOperation', function() {
 		var reverse = operation.reverseOperation();
 
 		expect( reverse ).to.be.an.instanceof( InsertOperation );
-		expect( reverse.baseVersion ).to.be.equals( 1 );
-		expect( reverse.nodeList ).to.be.equals( nodeList );
-		expect( reverse.position ).to.be.equals( position );
+		expect( reverse.baseVersion ).to.equals( 1 );
+		expect( reverse.nodeList ).to.equals( nodeList );
+		expect( reverse.position ).to.equals( position );
 	} );
 
 	it( 'should undo remove set of nodes by applying reverse operation', function() {