8
0
Quellcode durchsuchen

Tests: Reorder `FontSizeCommand` test.

Maciej Gołaszewski vor 8 Jahren
Ursprung
Commit
b64e73858a
1 geänderte Dateien mit 2 neuen und 3 gelöschten Zeilen
  1. 2 3
      packages/ckeditor5-font/tests/fontsize/fontsizecommand.js

+ 2 - 3
packages/ckeditor5-font/tests/fontsize/fontsizecommand.js

@@ -15,14 +15,13 @@ describe( 'FontSizeCommand', () => {
 	beforeEach( () => {
 		return ModelTestEditor.create()
 			.then( newEditor => {
-				model = newEditor.model;
-				command = new FontSizeCommand( newEditor, 'text-huge' );
 				editor = newEditor;
+				model = editor.model;
 
+				command = new FontSizeCommand( editor, 'text-huge' );
 				editor.commands.add( 'fontSize', command );
 
 				model.schema.registerItem( 'paragraph', '$block' );
-
 				model.schema.allow( { name: '$inline', attributes: 'fontSize', inside: '$block' } );
 			} );
 	} );