Преглед изворни кода

Aligned code to new linter rules.

Piotrek Koszuliński пре 5 година
родитељ
комит
a68dafd44e

+ 1 - 1
packages/ckeditor5-font/src/fontsize/fontsizeediting.js

@@ -107,7 +107,7 @@ export default class FontSizeEditing extends Plugin {
 		editor.conversion.for( 'upcast' ).attributeToAttribute( {
 			model: {
 				key: FONT_SIZE,
-				value: viewElement => viewElement.getStyle( 'font-size' ),
+				value: viewElement => viewElement.getStyle( 'font-size' )
 			},
 			view: {
 				name: 'span'

+ 5 - 5
packages/ckeditor5-font/tests/fontsize/utils.js

@@ -56,7 +56,7 @@ describe( 'FontSizeEditing Utils', () => {
 				};
 
 				expect( normalizeOptions( [ tinyOption ] ) ).to.deep.equal( [
-					{ title: 'Tiny', model: 'tiny', view: { name: 'span', classes: 'text-tiny', priority: 7 } },
+					{ title: 'Tiny', model: 'tiny', view: { name: 'span', classes: 'text-tiny', priority: 7 } }
 				] );
 			} );
 
@@ -110,7 +110,7 @@ describe( 'FontSizeEditing Utils', () => {
 				};
 
 				expect( normalizeOptions( [ numericOption ] ) ).to.deep.equal( [
-					{ title: '18', model: '18px', view: { name: 'span', styles: { 'font-size': '18px' }, priority: 7 } },
+					{ title: '18', model: '18px', view: { name: 'span', styles: { 'font-size': '18px' }, priority: 7 } }
 				] );
 			} );
 
@@ -129,12 +129,12 @@ describe( 'FontSizeEditing Utils', () => {
 					model: '18px',
 					view: {
 						name: 'span',
-						styles: { 'font-size': '18px' },
+						styles: { 'font-size': '18px' }
 					}
 				};
 
 				expect( normalizeOptions( [ numericOption ] ) ).to.deep.equal( [
-					{ title: '18', model: '18px', view: { name: 'span', styles: { 'font-size': '18px' }, priority: 7 } },
+					{ title: '18', model: '18px', view: { name: 'span', styles: { 'font-size': '18px' }, priority: 7 } }
 				] );
 			} );
 
@@ -150,7 +150,7 @@ describe( 'FontSizeEditing Utils', () => {
 				};
 
 				expect( normalizeOptions( [ numericOption ] ) ).to.deep.equal( [
-					{ title: '18', model: '18px', view: { name: 'span', styles: { 'font-size': '18px' }, priority: 10 } },
+					{ title: '18', model: '18px', view: { name: 'span', styles: { 'font-size': '18px' }, priority: 10 } }
 				] );
 			} );