Skip to content

Commit 2ab4333

Browse files
authored
Put missing required prop in test case
1 parent fc0af68 commit 2ab4333

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/_common_/Button/__tests__/Button.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ describe('Button', () => {
7070

7171
test('call props.onClick when button is clicked', () => {
7272
const onClickMock = jest.fn();
73-
const ButtonShallowInstance = shallow(<Button onClick={onClickMock} />);
73+
const ButtonShallowInstance = shallow(<Button onClick={onClickMock}>Test</Button>);
7474
ButtonShallowInstance.instance().clickHandler();
7575

7676
expect(onClickMock).toHaveBeenCalledTimes(1);

0 commit comments

Comments
 (0)