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
+2 -1
View File
@@ -14,7 +14,8 @@ class SentryError extends React.Component {
render() {
return <Message type="error" heading="An error has occurred">
<p>This error has been logged. You may also <a href="#error-report" onClick={ this.reportError }>fill out a report</a>.</p>
<p>This error has been logged. You may also <a href="#error-report"
onClick={ this.reportError }>fill out a report</a>.</p>
</Message>;
}
}
+2 -2
View File
@@ -15,7 +15,7 @@ describe('SentryError', () => {
});
describe('error reporting', () => {
test('clicking to fill out a report when an event has been logged', () => {
test('fill out a report when an event has been logged', () => {
Sentry.lastEventId.mockReturnValue(1);
const component = shallow(
<SentryError />
@@ -27,7 +27,7 @@ describe('SentryError', () => {
expect(Sentry.showReportDialog).toHaveBeenCalled();
});
test('clicking to fill out a report when an event has not been logged', () => {
test('fill out a report when an event has not been logged', () => {
Sentry.lastEventId.mockReturnValue(false);
const component = shallow(
<SentryError />