Explorar o código

Tests: Extended a model class test to verify that $text is registered as a content in the schema.

Aleksander Nowodzinski %!s(int64=5) %!d(string=hai) anos
pai
achega
1453b7fa77
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      packages/ckeditor5-engine/tests/model/model.js

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

@@ -43,6 +43,7 @@ describe( 'Model', () => {
 
 		it( 'registers $text to the schema', () => {
 			expect( schema.isRegistered( '$text' ) ).to.be.true;
+			expect( schema.isContent( '$text' ) ).to.be.true;
 			expect( schema.checkChild( [ '$block' ], '$text' ) ).to.be.true;
 		} );