Skip to content

Commit

Permalink
Drop unnecessary await in toMatchSnapshot
Browse files Browse the repository at this point in the history
Co-authored-by: Bart Kalisz <bartlomiej.kalisz@gmail.com>
  • Loading branch information
kevin940726 and WunderBart committed Feb 14, 2023
1 parent fec18f5 commit 32b51c9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/e2e/specs/editor/blocks/image.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ test.describe( 'Image', () => {
width: 5,
} );

await expect(
expect(
await imageBlockUtils.getImageBuffer( updatedImageSrc )
).toMatchSnapshot();
} );
Expand Down Expand Up @@ -410,7 +410,7 @@ test.describe( 'Image', () => {
width: 10,
} );

await expect(
expect(
await imageBlockUtils.getImageBuffer( updatedImageSrc )
).toMatchSnapshot();
} );
Expand Down Expand Up @@ -447,7 +447,7 @@ test.describe( 'Image', () => {
// Assert that the image is edited.
const updatedImageSrc = await image.getAttribute( 'src' );

await expect(
expect(
await imageBlockUtils.getImageBuffer( updatedImageSrc )
).toMatchSnapshot();
} );
Expand Down

0 comments on commit 32b51c9

Please sign in to comment.