summaryrefslogtreecommitdiff
path: root/spec/frontend/error_tracking/components/error_tracking_list_spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/error_tracking/components/error_tracking_list_spec.js')
-rw-r--r--spec/frontend/error_tracking/components/error_tracking_list_spec.js40
1 files changed, 11 insertions, 29 deletions
diff --git a/spec/frontend/error_tracking/components/error_tracking_list_spec.js b/spec/frontend/error_tracking/components/error_tracking_list_spec.js
index bad70a31599..31f355ce6f1 100644
--- a/spec/frontend/error_tracking/components/error_tracking_list_spec.js
+++ b/spec/frontend/error_tracking/components/error_tracking_list_spec.js
@@ -163,7 +163,7 @@ describe('ErrorTrackingList', () => {
it('each error in the list should have an action button set', () => {
findErrorListRows().wrappers.forEach(row => {
- expect(row.contains(ErrorTrackingActions)).toBe(true);
+ expect(row.find(ErrorTrackingActions).exists()).toBe(true);
});
});
@@ -259,23 +259,15 @@ describe('ErrorTrackingList', () => {
errorId: errorsList[0].id,
status: 'ignored',
});
- expect(actions.updateStatus).toHaveBeenCalledWith(
- expect.anything(),
- {
- endpoint: `/project/test/-/error_tracking/${errorsList[0].id}.json`,
- status: 'ignored',
- },
- undefined,
- );
+ expect(actions.updateStatus).toHaveBeenCalledWith(expect.anything(), {
+ endpoint: `/project/test/-/error_tracking/${errorsList[0].id}.json`,
+ status: 'ignored',
+ });
});
it('calls an action to remove the item from the list', () => {
findErrorActions().vm.$emit('update-issue-status', { errorId: '1', status: undefined });
- expect(actions.removeIgnoredResolvedErrors).toHaveBeenCalledWith(
- expect.anything(),
- '1',
- undefined,
- );
+ expect(actions.removeIgnoredResolvedErrors).toHaveBeenCalledWith(expect.anything(), '1');
});
});
@@ -298,23 +290,15 @@ describe('ErrorTrackingList', () => {
errorId: errorsList[0].id,
status: 'resolved',
});
- expect(actions.updateStatus).toHaveBeenCalledWith(
- expect.anything(),
- {
- endpoint: `/project/test/-/error_tracking/${errorsList[0].id}.json`,
- status: 'resolved',
- },
- undefined,
- );
+ expect(actions.updateStatus).toHaveBeenCalledWith(expect.anything(), {
+ endpoint: `/project/test/-/error_tracking/${errorsList[0].id}.json`,
+ status: 'resolved',
+ });
});
it('calls an action to remove the item from the list', () => {
findErrorActions().vm.$emit('update-issue-status', { errorId: '1', status: undefined });
- expect(actions.removeIgnoredResolvedErrors).toHaveBeenCalledWith(
- expect.anything(),
- '1',
- undefined,
- );
+ expect(actions.removeIgnoredResolvedErrors).toHaveBeenCalledWith(expect.anything(), '1');
});
});
@@ -443,7 +427,6 @@ describe('ErrorTrackingList', () => {
expect(actions.fetchPaginatedResults).toHaveBeenLastCalledWith(
expect.anything(),
'previousCursor',
- undefined,
);
});
});
@@ -462,7 +445,6 @@ describe('ErrorTrackingList', () => {
expect(actions.fetchPaginatedResults).toHaveBeenLastCalledWith(
expect.anything(),
'nextCursor',
- undefined,
);
});
});