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

Commit

Permalink
Merge pull request #17 from ckeditor/t/ckeditor5-core/134
Browse files Browse the repository at this point in the history
Tests: Fixed tests broken by ckeditor/ckeditor5-core#135: `Editor#destroy` waits for the initialization.
  • Loading branch information
Piotr Jasiun committed Jun 29, 2018
2 parents d92da9f + 436daa4 commit 6a79fcf
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/decouplededitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ describe( 'DecoupledEditor', () => {
describe( 'constructor()', () => {
beforeEach( () => {
editor = new DecoupledEditor();
editor.ui.init();
} );

afterEach( () => {
return editor.destroy();
} );

it( 'uses HTMLDataProcessor', () => {
Expand All @@ -50,8 +45,12 @@ describe( 'DecoupledEditor', () => {

describe( 'ui', () => {
it( 'is created', () => {
editor.ui.init();

expect( editor.ui ).to.be.instanceof( DecoupledEditorUI );
expect( editor.ui.view ).to.be.instanceof( DecoupledEditorUIView );

editor.ui.destroy();
} );
} );
} );
Expand Down

0 comments on commit 6a79fcf

Please sign in to comment.