Skip to content

Commit

Permalink
using toBeInTheDocument in place of toBeDefined
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Jun 9, 2021
1 parent df51d03 commit 6423601
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe( 'BlockBreadcrumb', () => {

const rootLabelTextDefault = screen.getByText( 'Document' );

expect( rootLabelTextDefault ).toBeDefined();
expect( rootLabelTextDefault ).toBeInTheDocument();
} );

test( 'should display `rootLabelText` value', () => {
Expand All @@ -31,7 +31,7 @@ describe( 'BlockBreadcrumb', () => {
const rootLabelTextDefault = screen.queryByText( 'Document' );

expect( rootLabelTextDefault ).toBeNull();
expect( rootLabelText ).toBeDefined();
expect( rootLabelText ).toBeInTheDocument();
} );
} );
} );

0 comments on commit 6423601

Please sign in to comment.