浏览代码

Tests: Reorder `FontSizeCommand` test.

Maciej Gołaszewski 8 年之前
父节点
当前提交
b64e73858a
共有 1 个文件被更改,包括 2 次插入3 次删除
  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' } );
 			} );
 	} );