|
@@ -1,3 +1,5 @@
|
|
|
|
+import {Repository} from 'sentry-fixture/repository';
|
|
|
|
+
|
|
import {render, screen, userEvent} from 'sentry-test/reactTestingLibrary';
|
|
import {render, screen, userEvent} from 'sentry-test/reactTestingLibrary';
|
|
|
|
|
|
import {EventCause} from 'sentry/components/events/eventCause';
|
|
import {EventCause} from 'sentry/components/events/eventCause';
|
|
@@ -20,7 +22,7 @@ describe('EventCause', function () {
|
|
'feat: Enhance suggested commits and add to alerts\n\n- Refactor components to use new shared CommitRow\n- Add Suspect Commits to alert emails\n- Refactor committers scanning code to handle various edge cases.',
|
|
'feat: Enhance suggested commits and add to alerts\n\n- Refactor components to use new shared CommitRow\n- Add Suspect Commits to alert emails\n- Refactor committers scanning code to handle various edge cases.',
|
|
score: 4,
|
|
score: 4,
|
|
id: 'ab2709293d0c9000829084ac7b1c9221fb18437c',
|
|
id: 'ab2709293d0c9000829084ac7b1c9221fb18437c',
|
|
- repository: TestStubs.Repository(),
|
|
|
|
|
|
+ repository: Repository(),
|
|
dateCreated: '2018-03-02T18:30:26Z',
|
|
dateCreated: '2018-03-02T18:30:26Z',
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -28,7 +30,7 @@ describe('EventCause', function () {
|
|
'feat: Enhance suggested commits and add to alerts\n\n- Refactor components to use new shared CommitRow\n- Add Suspect Commits to alert emails\n- Refactor committers scanning code to handle various edge cases.',
|
|
'feat: Enhance suggested commits and add to alerts\n\n- Refactor components to use new shared CommitRow\n- Add Suspect Commits to alert emails\n- Refactor committers scanning code to handle various edge cases.',
|
|
score: 4,
|
|
score: 4,
|
|
id: 'ab2709293d0c9000829084ac7b1c9221fb18437c',
|
|
id: 'ab2709293d0c9000829084ac7b1c9221fb18437c',
|
|
- repository: TestStubs.Repository(),
|
|
|
|
|
|
+ repository: Repository(),
|
|
dateCreated: '2018-03-02T18:30:26Z',
|
|
dateCreated: '2018-03-02T18:30:26Z',
|
|
},
|
|
},
|
|
],
|
|
],
|
|
@@ -40,7 +42,7 @@ describe('EventCause', function () {
|
|
message: 'fix: Make things less broken',
|
|
message: 'fix: Make things less broken',
|
|
score: 2,
|
|
score: 2,
|
|
id: 'zzzzzz3d0c9000829084ac7b1c9221fb18437c',
|
|
id: 'zzzzzz3d0c9000829084ac7b1c9221fb18437c',
|
|
- repository: TestStubs.Repository(),
|
|
|
|
|
|
+ repository: Repository(),
|
|
dateCreated: '2018-03-02T16:30:26Z',
|
|
dateCreated: '2018-03-02T16:30:26Z',
|
|
},
|
|
},
|
|
],
|
|
],
|
|
@@ -174,7 +176,7 @@ describe('EventCause', function () {
|
|
message: 'fix: Make things less broken',
|
|
message: 'fix: Make things less broken',
|
|
score: 2,
|
|
score: 2,
|
|
id: 'zzzzzz3d0c9000829084ac7b1c9221fb18437c',
|
|
id: 'zzzzzz3d0c9000829084ac7b1c9221fb18437c',
|
|
- repository: TestStubs.Repository(),
|
|
|
|
|
|
+ repository: Repository(),
|
|
dateCreated: '2018-03-02T16:30:26Z',
|
|
dateCreated: '2018-03-02T16:30:26Z',
|
|
},
|
|
},
|
|
],
|
|
],
|