8
0
فهرست منبع

Improved the test.

Kamil Piechaczek 8 سال پیش
والد
کامیت
4539fc167c
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      packages/ckeditor5-engine/tests/model/schema/schema.js

+ 1 - 1
packages/ckeditor5-engine/tests/model/schema/schema.js

@@ -660,7 +660,7 @@ describe( 'Schema', () => {
 		} );
 
 		it( 'always returns $root element if any other limit was not defined', () => {
-			schema.limits.delete( '$root' );
+			schema.limits.clear();
 
 			setData( doc, '<div><section><article><paragraph>foo[]bar</paragraph></article></section></div>' );
 			expect( schema.getLimitElement( doc.selection ) ).to.equal( root );