diff --git a/tests/toolbar/block/blocktoolbar.js b/tests/toolbar/block/blocktoolbar.js index 807b21cd..0b50c94c 100644 --- a/tests/toolbar/block/blocktoolbar.js +++ b/tests/toolbar/block/blocktoolbar.js @@ -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', () => {