Skip to content

Commit

Permalink
Fix button tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cgero-eth committed Sep 19, 2023
1 parent e87ca8d commit 0358123
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/button/button.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ import { Button, type IButtonProps } from './button';

describe('<Button /> component', () => {
const createTestComponent = (props?: Partial<IButtonProps>) => {
return <Button {...props} />;
const completeProps: IButtonProps = {
variant: 'primary',
size: 'md',
...props,
};

return <Button {...completeProps} />;
};

it('renders a button', () => {
Expand Down

0 comments on commit 0358123

Please sign in to comment.