浏览代码

Fixed DataController insertContent test to not log warning.

Szymon Kupś 9 年之前
父节点
当前提交
4a15ffb8bc
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      packages/ckeditor5-engine/tests/controller/datacontroller.js

+ 1 - 0
packages/ckeditor5-engine/tests/controller/datacontroller.js

@@ -409,6 +409,7 @@ describe( 'DataController', () => {
 			const spy = sinon.spy();
 			const content = new ModelDocumentFragment( [ new ModelText( 'x' ) ] );
 			const batch = modelDocument.batch();
+			schema.allow( { name: '$text', inside: '$root' } );
 
 			data.on( 'insertContent', spy );