Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update test to avoid unnecessary snapshot
  • Loading branch information
mirka committed Sep 14, 2022
commit 60b85800d3b599218ca338b2348b4c7394af0f92

This file was deleted.

9 changes: 6 additions & 3 deletions packages/components/src/unit-control/test/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,12 @@ describe( 'UnitControl', () => {
<UnitControl className="hello" />
);

expect( withoutClassName.firstChild ).toMatchDiffSnapshot(
withClassName.firstChild
);
expect(
withoutClassName.querySelector( '.components-unit-control' )
).not.toHaveClass( 'hello' );
expect(
withClassName.querySelector( '.components-unit-control' )
).toHaveClass( 'hello' );
} );

it( 'should not render select, if units are disabled', () => {
Expand Down