diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-24 12:07:22 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-24 12:07:22 +0300 |
commit | 23b60ed2c1e1dc5598fe5d44425f2aac11024d01 (patch) | |
tree | 5242d74c24979f6b94003c3a06584211ffcd1583 /spec/frontend/notifications | |
parent | c81279ca90155fbb959987105797d02cd808e992 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/notifications')
-rw-r--r-- | spec/frontend/notifications/components/custom_notifications_modal_spec.js | 10 | ||||
-rw-r--r-- | spec/frontend/notifications/components/notifications_dropdown_spec.js | 5 |
2 files changed, 3 insertions, 12 deletions
diff --git a/spec/frontend/notifications/components/custom_notifications_modal_spec.js b/spec/frontend/notifications/components/custom_notifications_modal_spec.js index 5e4114d91f5..0782ec7cdd5 100644 --- a/spec/frontend/notifications/components/custom_notifications_modal_spec.js +++ b/spec/frontend/notifications/components/custom_notifications_modal_spec.js @@ -177,11 +177,8 @@ describe('CustomNotificationsModal', () => { await waitForPromises(); - expect( - mockToastShow, - ).toHaveBeenCalledWith( + expect(mockToastShow).toHaveBeenCalledWith( 'An error occurred while loading the notification settings. Please try again.', - { type: 'error' }, ); }); }); @@ -255,11 +252,8 @@ describe('CustomNotificationsModal', () => { await waitForPromises(); - expect( - mockToastShow, - ).toHaveBeenCalledWith( + expect(mockToastShow).toHaveBeenCalledWith( 'An error occurred while updating the notification settings. Please try again.', - { type: 'error' }, ); }); }); diff --git a/spec/frontend/notifications/components/notifications_dropdown_spec.js b/spec/frontend/notifications/components/notifications_dropdown_spec.js index e90bd68d067..e12251ce6d9 100644 --- a/spec/frontend/notifications/components/notifications_dropdown_spec.js +++ b/spec/frontend/notifications/components/notifications_dropdown_spec.js @@ -242,11 +242,8 @@ describe('NotificationsDropdown', () => { await clickDropdownItemAt(1); expect(wrapper.vm.selectedNotificationLevel).toBe('global'); - expect( - mockToastShow, - ).toHaveBeenCalledWith( + expect(mockToastShow).toHaveBeenCalledWith( 'An error occurred while updating the notification settings. Please try again.', - { type: 'error' }, ); }); |