Przeglądaj źródła

Tests: Fixed to.be.equal() use.

Piotrek Koszuliński 5 lat temu
rodzic
commit
8155832518

+ 3 - 3
packages/ckeditor5-ui/tests/editorui/bodycollection.js

@@ -32,7 +32,7 @@ describe( 'BodyCollection', () => {
 		it( 'assigns locale', () => {
 			const instance = new BodyCollection( locale );
 
-			expect( instance.locale ).to.be.equal( locale );
+			expect( instance.locale ).to.equal( locale );
 		} );
 
 		it( 'stores pre-initialized collection', () => {
@@ -40,8 +40,8 @@ describe( 'BodyCollection', () => {
 			const instance = new BodyCollection( locale, collectionItems );
 
 			expect( instance ).to.have.lengthOf( 2 );
-			expect( instance.get( 0 ) ).to.be.equal( collectionItems[ 0 ] );
-			expect( instance.get( 1 ) ).to.be.equal( collectionItems[ 1 ] );
+			expect( instance.get( 0 ) ).to.equal( collectionItems[ 0 ] );
+			expect( instance.get( 1 ) ).to.equal( collectionItems[ 1 ] );
 		} );
 	} );
 

+ 1 - 1
packages/ckeditor5-ui/tests/toolbar/balloon/balloontoolbar.js

@@ -413,7 +413,7 @@ describe( 'BalloonToolbar', () => {
 			// The expected width should be 90% of the editor's editable element's width.
 			const expectedWidth = toPx( new Rect( viewElement ).width * 0.9 );
 
-			expect( balloonToolbar.toolbarView.maxWidth ).to.be.equal( expectedWidth );
+			expect( balloonToolbar.toolbarView.maxWidth ).to.equal( expectedWidth );
 		} );
 	} );
 

+ 2 - 2
packages/ckeditor5-ui/tests/toolbar/block/blocktoolbar.js

@@ -509,7 +509,7 @@ describe( 'BlockToolbar', () => {
 				//            |                         |
 				//  <--------------max-width------------>
 
-				expect( blockToolbar.toolbarView.maxWidth ).to.be.equal( '440px' );
+				expect( blockToolbar.toolbarView.maxWidth ).to.equal( '440px' );
 			} );
 
 			it( 'should set a proper toolbar max-width in RTL', () => {
@@ -544,7 +544,7 @@ describe( 'BlockToolbar', () => {
 				//  |                         |
 				//  <--------------max-width------------>
 
-				expect( blockToolbar.toolbarView.maxWidth ).to.be.equal( '440px' );
+				expect( blockToolbar.toolbarView.maxWidth ).to.equal( '440px' );
 			} );
 		} );