diff --git a/packages/components/src/card/test/__snapshots__/index.js.snap b/packages/components/src/card/test/__snapshots__/index.js.snap index adf11cff8056a3..8527ab716c4320 100644 --- a/packages/components/src/card/test/__snapshots__/index.js.snap +++ b/packages/components/src/card/test/__snapshots__/index.js.snap @@ -157,8 +157,8 @@ Snapshot Diff: @@ -1,30 +1,30 @@
@@ -191,6 +191,23 @@ Snapshot Diff:
`; +exports[`Card Card component should remove borders when the isBorderless prop is true 1`] = ` +Snapshot Diff: +- First value ++ Second value + +@@ -1,8 +1,8 @@ +
+
+
{ } ); it( 'should remove borders when the isBorderless prop is true', () => { - const { rerender, container } = render( + const { container: withBorders } = render( Code is Poetry ); - expect( container.firstChild ).not.toHaveStyle( - 'box-shadow: none' + + const { container: withoutBorders } = render( + Code is Poetry ); - rerender( Code is Poetry ); - expect( container.firstChild ).toHaveStyle( 'box-shadow: none' ); + expect( withBorders ).toMatchDiffSnapshot( withoutBorders ); } ); it( 'should add rounded border when the isRounded prop is true', () => {