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

Commit

Permalink
Remove asynchronous test code from expect().
Browse files Browse the repository at this point in the history
  • Loading branch information
jodator committed Dec 19, 2019
1 parent ea02023 commit 53d35ff
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/toolbar/block/blocktoolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,13 @@ describe( 'BlockToolbar', () => {
expect( BlockToolbar.pluginName ).to.equal( 'BlockToolbar' );
} );

it( 'should work with empty config', async () => {
it( 'should not throw when empty config is provided', async () => {
// Remove default editor instance.
await editor.destroy();

expect( async () => {
editor = await ClassicTestEditor.create( element, {
plugins: [ BlockToolbar ]
} );
} ).to.not.throw();
editor = await ClassicTestEditor.create( element, {
plugins: [ BlockToolbar ]
} );
} );

describe( 'child views', () => {
Expand Down

0 comments on commit 53d35ff

Please sign in to comment.