Przeglądaj źródła

Fixed broken test and made Karma complain less about incorrect descriptions.

Piotrek Koszuliński 9 lat temu
rodzic
commit
3ea345678d

+ 1 - 1
packages/ckeditor5-core/tests/_utils-tests/classictesteditor.js

@@ -24,7 +24,7 @@ describe( 'ClassicTestEditor', () => {
 		document.body.appendChild( editorElement );
 		document.body.appendChild( editorElement );
 	} );
 	} );
 
 
-	describe( 'constructor', () => {
+	describe( 'constructor()', () => {
 		it( 'creates an instance of editor', () => {
 		it( 'creates an instance of editor', () => {
 			const editor = new ClassicTestEditor( editorElement, { foo: 1 } );
 			const editor = new ClassicTestEditor( editorElement, { foo: 1 } );
 
 

+ 1 - 1
packages/ckeditor5-core/tests/_utils-tests/modeltesteditor.js

@@ -13,7 +13,7 @@ import testUtils from 'tests/core/_utils/utils.js';
 testUtils.createSinonSandbox();
 testUtils.createSinonSandbox();
 
 
 describe( 'ModelTestEditor', () => {
 describe( 'ModelTestEditor', () => {
-	describe( 'constructor', () => {
+	describe( 'constructor()', () => {
 		it( 'creates an instance of editor', () => {
 		it( 'creates an instance of editor', () => {
 			const editor = new ModelTestEditor( { foo: 1 } );
 			const editor = new ModelTestEditor( { foo: 1 } );
 
 

+ 1 - 1
packages/ckeditor5-core/tests/_utils-tests/virtualtesteditor.js

@@ -12,7 +12,7 @@ import testUtils from 'tests/core/_utils/utils.js';
 testUtils.createSinonSandbox();
 testUtils.createSinonSandbox();
 
 
 describe( 'VirtualTestEditor', () => {
 describe( 'VirtualTestEditor', () => {
-	describe( 'constructor', () => {
+	describe( 'constructor()', () => {
 		it( 'creates an instance of editor', () => {
 		it( 'creates an instance of editor', () => {
 			const editor = new VirtualTestEditor( { foo: 1 } );
 			const editor = new VirtualTestEditor( { foo: 1 } );
 
 

+ 1 - 1
packages/ckeditor5-core/tests/command/command.js

@@ -31,7 +31,7 @@ afterEach( () => {
 	editor.destroy();
 	editor.destroy();
 } );
 } );
 
 
-describe( 'constructor', () => {
+describe( 'constructor()', () => {
 	it( 'should create a new command instance, that is enabled and bound to given editor', () => {
 	it( 'should create a new command instance, that is enabled and bound to given editor', () => {
 		expect( command ).to.have.property( 'editor' ).equal( editor );
 		expect( command ).to.have.property( 'editor' ).equal( editor );
 		expect( command.isEnabled ).to.be.true;
 		expect( command.isEnabled ).to.be.true;

+ 1 - 1
packages/ckeditor5-core/tests/editor/editor.js

@@ -46,7 +46,7 @@ class PluginD extends Plugin {
 }
 }
 
 
 describe( 'Editor', () => {
 describe( 'Editor', () => {
-	describe( 'constructor', () => {
+	describe( 'constructor()', () => {
 		it( 'should create a new editor instance', () => {
 		it( 'should create a new editor instance', () => {
 			const editor = new Editor();
 			const editor = new Editor();
 
 

+ 1 - 1
packages/ckeditor5-core/tests/editor/standardeditor.js

@@ -22,7 +22,7 @@ describe( 'StandardEditor', () => {
 		document.body.appendChild( editorElement );
 		document.body.appendChild( editorElement );
 	} );
 	} );
 
 
-	describe( 'constructor', () => {
+	describe( 'constructor()', () => {
 		it( 'sets all properties', () => {
 		it( 'sets all properties', () => {
 			const editor = new StandardEditor( editorElement, { foo: 1 } );
 			const editor = new StandardEditor( editorElement, { foo: 1 } );
 
 

+ 1 - 1
packages/ckeditor5-core/tests/keystrokehandler.js

@@ -20,7 +20,7 @@ describe( 'KeystrokeHandler', () => {
 			} );
 			} );
 	} );
 	} );
 
 
-	describe( 'constructor', () => {
+	describe( 'constructor()', () => {
 		it( 'triggers #press on #keydown', () => {
 		it( 'triggers #press on #keydown', () => {
 			const spy = sinon.spy( editor.keystrokes, 'press' );
 			const spy = sinon.spy( editor.keystrokes, 'press' );
 			const keyEvtData = { keyCode: 1 };
 			const keyEvtData = { keyCode: 1 };

+ 1 - 1
packages/ckeditor5-core/tests/plugin.js

@@ -12,7 +12,7 @@ before( () => {
 	editor = new Editor();
 	editor = new Editor();
 } );
 } );
 
 
-describe( 'constructor', () => {
+describe( 'constructor()', () => {
 	it( 'should set the `editor` property', () => {
 	it( 'should set the `editor` property', () => {
 		let plugin = new Plugin( editor );
 		let plugin = new Plugin( editor );
 
 

+ 1 - 1
packages/ckeditor5-core/tests/plugincollection.js

@@ -53,7 +53,7 @@ describe( 'load', () => {
 
 
 		return plugins.load( [] )
 		return plugins.load( [] )
 			.then( () => {
 			.then( () => {
-				expect( getPlugins( plugins ) ).to.be.empty();
+				expect( getPlugins( plugins ) ).to.be.empty;
 			} );
 			} );
 	} );
 	} );