8
0
Aleksander Nowodzinski 6 жил өмнө
parent
commit
d56551000b

+ 0 - 1
packages/ckeditor5-font/tests/fontbackgroundcolor/fontbackgroundcolorcommand.js

@@ -5,7 +5,6 @@
 
 import FontBackgroundColorCommand from '../../src/fontbackgroundcolor/fontbackgroundcolorcommand';
 import FontCommand from '../../src/fontcommand';
-
 import ModelTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/modeltesteditor';
 
 describe( 'FontBackgroundColorCommand', () => {

+ 5 - 3
packages/ckeditor5-font/tests/fontbackgroundcolor/fontbackgroundcoloreditng.js

@@ -4,11 +4,12 @@
  */
 
 import FontBackgroundColorEditing from './../../src/fontbackgroundcolor/fontbackgroundcolorediting';
-
 import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
-
 import VirtualTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/virtualtesteditor';
-import { getData as getModelData, setData as setModelData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
+import {
+	getData as getModelData,
+	setData as setModelData
+} from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
 
 describe( 'FontBackgroundColorEditing', () => {
 	let editor, doc;
@@ -133,6 +134,7 @@ describe( 'FontBackgroundColorEditing', () => {
 				'rgb( 20%, 30%, 40% )',
 				'#345678'
 			];
+
 			tests.forEach( test => {
 				it( `should convert fontBackgroundColor attribute: "${ test }" to proper style value.`, () => {
 					setModelData( doc, `<paragraph>fo<$text fontBackgroundColor="${ test }">o b</$text>ar</paragraph>` );

+ 0 - 2
packages/ckeditor5-font/tests/fontbackgroundcolor/fontbackgroundcolorui.js

@@ -8,9 +8,7 @@
 import FontBackgroundColorEditing from './../../src/fontbackgroundcolor/fontbackgroundcolorediting';
 import FontBackgroundColorUI from './../../src/fontbackgroundcolor/fontbackgroundcolorui';
 import ColorUI from './../../src/ui/colorui';
-
 import ClassicTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/classictesteditor';
-
 import fontBackgroundColorIcon from '../../theme/icons/font-background.svg';
 
 describe( 'FontBckgroundColorUI', () => {

+ 0 - 1
packages/ckeditor5-font/tests/fontcolor/fontcolorcommand.js

@@ -5,7 +5,6 @@
 
 import FontColorCommand from '../../src/fontcolor/fontcolorcommand';
 import FontCommand from '../../src/fontcommand';
-
 import ModelTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/modeltesteditor';
 
 describe( 'FontColorCommand', () => {

+ 4 - 5
packages/ckeditor5-font/tests/fontcolor/fontcolorediting.js

@@ -4,11 +4,12 @@
  */
 
 import FontColorEditing from './../../src/fontcolor/fontcolorediting';
-
 import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
-
 import VirtualTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/virtualtesteditor';
-import { getData as getModelData, setData as setModelData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
+import {
+	getData as getModelData,
+	setData as setModelData
+} from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
 
 describe( 'FontColorEditing', () => {
 	let editor, doc;
@@ -31,7 +32,6 @@ describe( 'FontColorEditing', () => {
 	it( 'should set proper schema rules', () => {
 		expect( editor.model.schema.checkAttribute( [ '$block', '$text' ], 'fontColor' ) ).to.be.true;
 		expect( editor.model.schema.checkAttribute( [ '$clipboardHolder', '$text' ], 'fontColor' ) ).to.be.true;
-
 		expect( editor.model.schema.checkAttribute( [ '$block' ], 'fontColor' ) ).to.be.false;
 	} );
 
@@ -181,7 +181,6 @@ describe( 'FontColorEditing', () => {
 			editor.setData( data );
 
 			expect( getModelData( doc ) ).to.equal( '<paragraph>[]f<$text fontColor="rgb(10,20,30)">o</$text>o</paragraph>' );
-
 			expect( editor.getData() ).to.equal( '<p>f<span style="color:rgb(10,20,30);">o</span>o</p>' );
 		} );
 

+ 0 - 2
packages/ckeditor5-font/tests/fontcolor/fontcolorui.js

@@ -8,9 +8,7 @@
 import FontColorEditing from './../../src/fontcolor/fontcolorediting';
 import FontColorUI from './../../src/fontcolor/fontcolorui';
 import ColorUI from './../../src/ui/colorui';
-
 import ClassicTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/classictesteditor';
-
 import fontColorIcon from '../../theme/icons/font-color.svg';
 
 describe( 'FontColorUI', () => {