瀏覽代碼

Adjusted tests to datacontroller fix.

Oskar Wrobel 9 年之前
父節點
當前提交
6db00fd990
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      packages/ckeditor5-typing/tests/input.js

+ 5 - 5
packages/ckeditor5-typing/tests/input.js

@@ -17,7 +17,7 @@ import ViewElement from '/ckeditor5/engine/view/element.js';
 import EmitterMixin from '/ckeditor5/utils/emittermixin.js';
 import { getCode } from '/ckeditor5/utils/keyboard.js';
 
-import { getData as getModelData, stringify as modelStringify } from '/tests/engine/_utils/model.js';
+import { getData as getModelData } from '/tests/engine/_utils/model.js';
 import { getData as getViewData } from '/tests/engine/_utils/view.js';
 
 describe( 'Input feature', () => {
@@ -135,8 +135,8 @@ describe( 'Input feature', () => {
 				}
 			] );
 
-			expect( modelStringify( modelRoot ) ).to.equal( '<paragraph></paragraph>' );
-			expect( getViewData( view ) ).to.equal( '<p></p>' );
+			expect( getModelData( model ) ).to.equal( '<paragraph>[]</paragraph>' );
+			expect( getViewData( view ) ).to.equal( '<p>[]</p>' );
 		} );
 
 		it( 'should do nothing when two nodes were inserted and one removed', () => {
@@ -195,8 +195,8 @@ describe( 'Input feature', () => {
 				}
 			] );
 
-			expect( modelStringify( modelRoot ) ).to.equal( '<paragraph></paragraph>' );
-			expect( getViewData( view ) ).to.equal( '<p></p>' );
+			expect( getModelData( model ) ).to.equal( '<paragraph>[]</paragraph>' );
+			expect( getViewData( view ) ).to.equal( '<p>[]</p>' );
 		} );
 	} );