diff options
Diffstat (limited to 'spec/frontend/vue_shared/security_reports/components/manage_via_mr_spec.js')
-rw-r--r-- | spec/frontend/vue_shared/security_reports/components/manage_via_mr_spec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/frontend/vue_shared/security_reports/components/manage_via_mr_spec.js b/spec/frontend/vue_shared/security_reports/components/manage_via_mr_spec.js index 5cdb6612487..f3d0d66cdd1 100644 --- a/spec/frontend/vue_shared/security_reports/components/manage_via_mr_spec.js +++ b/spec/frontend/vue_shared/security_reports/components/manage_via_mr_spec.js @@ -7,7 +7,7 @@ import createMockApollo from 'helpers/mock_apollo_helper'; import { extendedWrapper } from 'helpers/vue_test_utils_helper'; import waitForPromises from 'helpers/wait_for_promises'; import { humanize } from '~/lib/utils/text_utility'; -import { redirectTo } from '~/lib/utils/url_utility'; +import { redirectTo } from '~/lib/utils/url_utility'; // eslint-disable-line import/no-deprecated import ManageViaMr, { i18n, } from '~/vue_shared/security_configuration/components/manage_via_mr.vue'; @@ -146,8 +146,8 @@ describe('ManageViaMr component', () => { it('should call redirect helper with correct value', async () => { await wrapper.trigger('click'); await waitForPromises(); - expect(redirectTo).toHaveBeenCalledTimes(1); - expect(redirectTo).toHaveBeenCalledWith('testSuccessPath'); + expect(redirectTo).toHaveBeenCalledTimes(1); // eslint-disable-line import/no-deprecated + expect(redirectTo).toHaveBeenCalledWith('testSuccessPath'); // eslint-disable-line import/no-deprecated // This is done for UX reasons. If the loading prop is set to false // on success, then there's a period where the button is clickable // again. Instead, we want the button to display a loading indicator |