Skip to content

Commit

Permalink
Publicize: Remove test for old Twitter block
Browse files Browse the repository at this point in the history
Since we do not support the old Twitter block, let's remove the test for it.

Support was removed in 5065a7d
  • Loading branch information
jeherve committed Feb 19, 2021
1 parent 5065a7d commit 343d2fe
Showing 1 changed file with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,28 +44,6 @@ describe( 'addTweetstormToTweets', () => {
expect( wrappedBlock ).toEqual( block );
} );

it( 'should add the wrapper when passed core-embed/twitter block definition', () => {
const block = {
name: 'core-embed/twitter',
edit: baseEditFunction,
props: {
attributes: {
url: 'https://twitter.com/GaryPendergast/status/934003415507546112',
},
},
};

const wrappedBlock = addTweetstormToTweets( block );

expect( wrappedBlock ).not.toEqual( block );
expect( wrappedBlock.edit.name ).toEqual( 'WrappedBlockEdit' );

const wrapper = mount( <wrappedBlock.edit { ...block.props } /> );

expect( wrapper.find( '#baseEdit' ) ).toHaveLength( 1 );
expect( wrapper.find( 'IfBlockEditSelected(BlockControlsFill)' ) ).toHaveLength( 1 );
} );

it( 'should add the wrapper when passed core/embed block definition', () => {
const block = {
name: 'core/embed',
Expand Down

0 comments on commit 343d2fe

Please sign in to comment.