From 63f1834a92801497c4fbc6d04a2ed38e8af88bcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotrek=20Koszuli=C5=84ski?= Date: Mon, 24 Jul 2017 16:45:45 +0200 Subject: [PATCH] Tests: Corrected tear down process. --- tests/classiceditor.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/classiceditor.js b/tests/classiceditor.js index ec21e9c..4ea71d4 100644 --- a/tests/classiceditor.js +++ b/tests/classiceditor.js @@ -88,6 +88,7 @@ describe( 'ClassicEditor', () => { expect( editor.getData() ).to.equal( '

foo bar

' ); } ); + // #53 it( 'creates an instance of a ClassicEditor child class', () => { class CustomClassicEditor extends ClassicEditor {} @@ -95,12 +96,12 @@ describe( 'ClassicEditor', () => { plugins: [ Paragraph, Bold ] } ) .then( newEditor => { - editor = newEditor; - expect( newEditor ).to.be.instanceof( CustomClassicEditor ); expect( newEditor ).to.be.instanceof( ClassicEditor ); expect( newEditor.getData() ).to.equal( '

foo bar

' ); + + return newEditor.destroy(); } ); } ); } );