From 6e180539ed184b5444a8f9e65c7e57d12b38f182 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Thu, 23 Jul 2020 16:59:57 +1000 Subject: [PATCH] Tests: Blocks no longer need assets defined. --- .../block-directory/src/store/test/actions.js | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/packages/block-directory/src/store/test/actions.js b/packages/block-directory/src/store/test/actions.js index 147ad2b1e415b..b74f7f1a65772 100644 --- a/packages/block-directory/src/store/test/actions.js +++ b/packages/block-directory/src/store/test/actions.js @@ -158,31 +158,6 @@ describe( 'actions', () => { } ); } ); - it( 'should set an error if the plugin has no assets', () => { - const generator = installBlockType( { ...block, assets: [] } ); - - expect( generator.next().value ).toEqual( { - type: 'CLEAR_ERROR_NOTICE', - blockId: block.id, - } ); - - expect( generator.next().value ).toMatchObject( { - type: 'SET_ERROR_NOTICE', - blockId: block.id, - } ); - - expect( generator.next().value ).toEqual( { - type: 'SET_INSTALLING_BLOCK', - blockId: block.id, - isInstalling: false, - } ); - - expect( generator.next() ).toEqual( { - value: false, - done: true, - } ); - } ); - it( "should set an error if the plugin can't install", () => { const generator = installBlockType( block );