Parcourir la source

Changed assertion styles in tests.

Szymon Kupś il y a 9 ans
Parent
commit
d162ed1c5e

+ 4 - 4
packages/ckeditor5-utils/tests/config.js

@@ -151,8 +151,8 @@ describe( 'set', () => {
 	it( 'should set `null` for undefined value', () => {
 		config.set( 'test' );
 
-		expect( config.test ).to.be.null();
-		expect( config.get( 'test' ) ).to.be.null();
+		expect( config.test ).to.be.null;
+		expect( config.get( 'test' ) ).to.be.null;
 	} );
 } );
 
@@ -186,11 +186,11 @@ describe( 'get', () => {
 	} );
 
 	it( 'should return undefined for non existing configuration', () => {
-		expect( config.get( 'invalid' ) ).to.be.undefined();
+		expect( config.get( 'invalid' ) ).to.be.undefined;
 	} );
 
 	it( 'should return undefined for non existing deep configuration', () => {
-		expect( config.get( 'resize.invalid.value' ) ).to.be.undefined();
+		expect( config.get( 'resize.invalid.value' ) ).to.be.undefined;
 	} );
 } );
 

+ 6 - 6
packages/ckeditor5-utils/tests/eventinfo.js

@@ -13,8 +13,8 @@ describe( 'EventInfo', () => {
 
 		expect( event.source ).to.equal( this );
 		expect( event.name ).to.equal( 'test' );
-		expect( event.stop.called ).to.not.be.true();
-		expect( event.off.called ).to.not.be.true();
+		expect( event.stop.called ).to.not.be.true;
+		expect( event.off.called ).to.not.be.true;
 	} );
 
 	it( 'should have stop() and off() marked', () => {
@@ -23,8 +23,8 @@ describe( 'EventInfo', () => {
 		event.stop();
 		event.off();
 
-		expect( event.stop.called ).to.be.true();
-		expect( event.off.called ).to.be.true();
+		expect( event.stop.called ).to.be.true;
+		expect( event.off.called ).to.be.true;
 	} );
 
 	it( 'should not mark "called" in future instances', () => {
@@ -35,7 +35,7 @@ describe( 'EventInfo', () => {
 
 		event = new EventInfo( 'test' );
 
-		expect( event.stop.called ).to.not.be.true();
-		expect( event.off.called ).to.not.be.true();
+		expect( event.stop.called ).to.not.be.true;
+		expect( event.off.called ).to.not.be.true;
 	} );
 } );

+ 3 - 3
packages/ckeditor5-utils/tests/spy.js

@@ -12,7 +12,7 @@ describe( 'utils', () => {
 		it( 'should not have `called` after creation', () => {
 			let fn = spy();
 
-			expect( fn.called ).to.not.be.true();
+			expect( fn.called ).to.not.be.true;
 		} );
 
 		it( 'should register calls', () => {
@@ -21,8 +21,8 @@ describe( 'utils', () => {
 
 			fn1();
 
-			expect( fn1.called ).to.be.true();
-			expect( fn2.called ).to.not.be.true();
+			expect( fn1.called ).to.be.true;
+			expect( fn2.called ).to.not.be.true;
 		} );
 	} );
 } );