We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc0af68 commit 2ab4333Copy full SHA for 2ab4333
1 file changed
components/_common_/Button/__tests__/Button.test.js
@@ -70,7 +70,7 @@ describe('Button', () => {
70
71
test('call props.onClick when button is clicked', () => {
72
const onClickMock = jest.fn();
73
- const ButtonShallowInstance = shallow(<Button onClick={onClickMock} />);
+ const ButtonShallowInstance = shallow(<Button onClick={onClickMock}>Test</Button>);
74
ButtonShallowInstance.instance().clickHandler();
75
76
expect(onClickMock).toHaveBeenCalledTimes(1);
0 commit comments