Ver código fonte

Test: Aligned test to latest API.

Oskar Wróbel 8 anos atrás
pai
commit
63134c3748
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      packages/ckeditor5-core/tests/editor/editor.js

+ 1 - 1
packages/ckeditor5-core/tests/editor/editor.js

@@ -153,7 +153,7 @@ describe( 'Editor', () => {
 		it( 'should create main root element', () => {
 			const editor = new Editor();
 
-			expect( editor.model.document.hasRoot( 'main' ) ).to.true;
+			expect( editor.model.document.getRoot( 'main' ) ).to.ok;
 		} );
 
 		it( 'should activate #keystrokes', () => {