Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Tests: Corrected tear down process.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Jul 24, 2017
1 parent 0df61e8 commit 63f1834
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/classiceditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,19 +88,20 @@ describe( 'ClassicEditor', () => {
expect( editor.getData() ).to.equal( '<p><strong>foo</strong> bar</p>' );
} );

// #53
it( 'creates an instance of a ClassicEditor child class', () => {
class CustomClassicEditor extends ClassicEditor {}

return CustomClassicEditor.create( editorElement, {
plugins: [ Paragraph, Bold ]
} )
.then( newEditor => {
editor = newEditor;

expect( newEditor ).to.be.instanceof( CustomClassicEditor );
expect( newEditor ).to.be.instanceof( ClassicEditor );

expect( newEditor.getData() ).to.equal( '<p><strong>foo</strong> bar</p>' );

return newEditor.destroy();
} );
} );
} );
Expand Down

0 comments on commit 63f1834

Please sign in to comment.