Procházet zdrojové kódy

Remove asynchronous test code from expect().

Maciej Gołaszewski před 6 roky
rodič
revize
cc7edde2c8

+ 4 - 6
packages/ckeditor5-ui/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', () => {