Browse Source

Adjusted code to the changes in ckeditor5-editor-classic.

Kamil Piechaczek 7 years ago
parent
commit
15d253a386
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/ckeditor5-build-classic/tests/ckeditor.js

+ 2 - 2
packages/ckeditor5-build-classic/tests/ckeditor.js

@@ -73,11 +73,11 @@ describe( 'ClassicEditor build', () => {
 		} );
 
 		it( 'restores the editor element', () => {
-			expect( editor.element.style.display ).to.equal( 'none' );
+			expect( editor.sourceElement.style.display ).to.equal( 'none' );
 
 			return editor.destroy()
 				.then( () => {
-					expect( editor.element.style.display ).to.equal( '' );
+					expect( editor.sourceElement.style.display ).to.equal( '' );
 				} );
 		} );
 	} );