Selaa lähdekoodia

Code style: Aligned code style to new ESLint version.

Kamil Piechaczek 8 vuotta sitten
vanhempi
commit
27dfcbe3e7

+ 9 - 8
packages/ckeditor5-image/tests/image/imageengine.js

@@ -15,14 +15,15 @@ describe( 'ImageEngine', () => {
 	let editor, document, viewDocument;
 
 	beforeEach( () => {
-		return VirtualTestEditor.create( {
-			plugins: [ ImageEngine ]
-		} )
-		.then( newEditor => {
-			editor = newEditor;
-			document = editor.document;
-			viewDocument = editor.editing.view;
-		} );
+		return VirtualTestEditor
+			.create( {
+				plugins: [ ImageEngine ]
+			} )
+			.then( newEditor => {
+				editor = newEditor;
+				document = editor.document;
+				viewDocument = editor.editing.view;
+			} );
 	} );
 
 	it( 'should be loaded', () => {

+ 11 - 10
packages/ckeditor5-image/tests/imagestyle/imagestyleengine.js

@@ -14,16 +14,17 @@ describe( 'ImageStyleEngine', () => {
 	let editor, document, viewDocument;
 
 	beforeEach( () => {
-		return VirtualTestEditor.create( {
-			plugins: [ ImageStyleEngine ],
-			image: {
-				styles: [
-					{ name: 'fullStyle', title: 'foo', icon: 'object-center', value: null },
-					{ name: 'sideStyle', title: 'bar', icon: 'object-right', value: 'side', className: 'side-class' },
-					{ name: 'dummyStyle', title: 'baz', icon: 'object-dummy', value: 'dummy', className: 'dummy-class' }
-				]
-			}
-		} )
+		return VirtualTestEditor
+			.create( {
+				plugins: [ ImageStyleEngine ],
+				image: {
+					styles: [
+						{ name: 'fullStyle', title: 'foo', icon: 'object-center', value: null },
+						{ name: 'sideStyle', title: 'bar', icon: 'object-right', value: 'side', className: 'side-class' },
+						{ name: 'dummyStyle', title: 'baz', icon: 'object-dummy', value: 'dummy', className: 'dummy-class' }
+					]
+				}
+			} )
 			.then( newEditor => {
 				editor = newEditor;
 				document = editor.document;

+ 7 - 6
packages/ckeditor5-image/tests/imagetextalternative/imagetextalternativeengine.js

@@ -10,12 +10,13 @@ import ImageTextAlternativeCommand from '../../src/imagetextalternative/imagetex
 describe( 'ImageTextAlternativeEngine', () => {
 	let editor;
 	beforeEach( () => {
-		return VirtualTestEditor.create( {
-			plugins: [ ImageTextAlternativeEngine ]
-		} )
-		.then( newEditor => {
-			editor = newEditor;
-		} );
+		return VirtualTestEditor
+			.create( {
+				plugins: [ ImageTextAlternativeEngine ]
+			} )
+			.then( newEditor => {
+				editor = newEditor;
+			} );
 	} );
 
 	it( 'should register ImageAlteranteTextCommand', () => {