Skip to content

Commit

Permalink
Remove unneeded await statements from Video block unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fluiddot committed Jan 19, 2024
1 parent 86e3f8f commit 1334d22
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/block-library/src/video/test/edit.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe( 'Video block', () => {
<!-- /wp:video -->
`,
} );
const addVideoButton = await screen.queryByText( 'Add video' );
const addVideoButton = screen.queryByText( 'Add video' );
expect( addVideoButton ).toBeVisible();
} );

Expand All @@ -47,7 +47,7 @@ describe( 'Video block', () => {
<!-- /wp:video -->
`,
} );
const addVideoButton = await screen.queryByText( 'Add video' );
const addVideoButton = screen.queryByText( 'Add video' );
expect( addVideoButton ).toBeNull();
} );

Expand All @@ -61,7 +61,7 @@ https://videopress.com/<VIDEO_ID>
<!-- /wp:video -->
`,
} );
const addVideoButton = await screen.queryByText( 'Add video' );
const addVideoButton = screen.queryByText( 'Add video' );
expect( addVideoButton ).toBeNull();
} );
} );

0 comments on commit 1334d22

Please sign in to comment.