Skip to content

Commit

Permalink
feat: TET-906 add custom prop tester to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
karolinaszarek committed Jul 17, 2024
1 parent eeeb934 commit 69d1ede
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/Dimmer/Dimmer.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { Dimmer } from './Dimmer';
import { render } from '../../tests/render';

import { customPropTester } from '@/tests/customPropTester';

const getDimmer = (jsx: JSX.Element) => {
const { getByTestId } = render(jsx);
return getByTestId('dimmer');
Expand All @@ -16,4 +18,8 @@ describe('Dimmer', () => {
const dimmer = getDimmer(<Dimmer />);
expect(dimmer).toHaveStyle('background-color: rgba(25, 39, 58, 0.741)');
});

customPropTester(<Dimmer />, {
containerId: 'dimmer',
});
});

0 comments on commit 69d1ede

Please sign in to comment.