Updating eslint rules and addressing issues

This commit is contained in:
Jeff Avallone
2019-01-05 12:27:13 -05:00
parent 8a3471b916
commit 837b8d77df
10 changed files with 104 additions and 18 deletions
+6 -2
View File
@@ -27,9 +27,13 @@ describe('SentryBoundary', () => {
const error = new Error('Example error');
component.find('Child').simulateError(error);
component.setState({ hasError: true }); // NOTE: Enzyme doesn't call getDerivedStateFromError yet
// NOTE: Enzyme doesn't call getDerivedStateFromError yet, so we have to
// set the state manually
component.setState({ hasError: true });
expect(Sentry.captureException).toHaveBeenCalledWith(error, expect.anything());
expect(Sentry.captureException).toHaveBeenCalledWith(
error,
expect.anything());
expect(component).toMatchSnapshot();
});
});