Skip to content

Commit

Permalink
Correct block title tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtias committed Feb 4, 2021
1 parent b2b4502 commit d7825b8
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ describe( 'BlockTitle', () => {

const wrapper = shallow( <BlockTitle clientId="id-name-with-label" /> );

expect( wrapper.text() ).toBe( 'Block With Label: Test Label' );
expect( wrapper.text() ).toBe( 'Test Label' );
} );

it( 'truncates the label if it is too long', () => {
Expand All @@ -116,8 +116,6 @@ describe( 'BlockTitle', () => {
<BlockTitle clientId="id-name-with-long-label" />
);

expect( wrapper.text() ).toBe(
'Block With Long Label: This is a lo...'
);
expect( wrapper.text() ).toBe( 'This is a longer label than typi...' );
} );
} );

0 comments on commit d7825b8

Please sign in to comment.