Skip to content
Prev Previous commit
Next Next commit
Add test for new variant
  • Loading branch information
brookewp committed Oct 6, 2023
commit b8abb3fd11ef4f89378134c4464912eb720bb61b
8 changes: 8 additions & 0 deletions packages/components/src/toolbar/test/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,13 @@ describe( 'Toolbar', () => {
screen.getByLabelText( 'control2', { selector: 'button' } )
).toBeInTheDocument();
} );

it( 'should render a toolbar without styles if variant has been defined', () => {
render( <Toolbar label="blocks" variant="unstyled" /> );

expect( screen.getByRole( 'toolbar' ) ).toHaveClass(
'is-unstyled'
);
} );
} );
} );