Ver código fonte

Tests: Reorder `FontSizeCommand` test.

Maciej Gołaszewski 8 anos atrás
pai
commit
b64e73858a

+ 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' } );
 			} );
 	} );