diff --git a/src/components/Header/__snapshots__/test.js.snap b/src/components/Header/__snapshots__/test.js.snap
index 19f49f5..245ce89 100644
--- a/src/components/Header/__snapshots__/test.js.snap
+++ b/src/components/Header/__snapshots__/test.js.snap
@@ -17,16 +17,15 @@ exports[`Header closing the Privacy Policy modal 1`] = `
shouldReturnFocusAfterClose={true}
>
-
-
+
-
-
+
-
-
+
-
-
+
-
-
+
{
- event.preventDefault();
+ handleClose = () => {
this.setState({ showModal: false });
}
@@ -49,12 +48,11 @@ class Header extends React.PureComponent {
onRequestClose={ this.handleClose }
shouldCloseOnOverlayClick={ true }>
-
-
+
{
const component = shallow(
);
- const eventObj = { preventDefault: jest.fn() };
component.setState({ showModal: true });
expect(component).toMatchSnapshot();
- component.instance().handleClose(eventObj);
+ component.instance().handleClose();
- expect(eventObj.preventDefault).toHaveBeenCalled();
expect(component).toMatchSnapshot();
});
});