diff options
Diffstat (limited to 'spec/frontend/ci_variable_list/components/ci_admin_variables_spec.js')
-rw-r--r-- | spec/frontend/ci_variable_list/components/ci_admin_variables_spec.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/frontend/ci_variable_list/components/ci_admin_variables_spec.js b/spec/frontend/ci_variable_list/components/ci_admin_variables_spec.js index 920ceaefb70..864041141b8 100644 --- a/spec/frontend/ci_variable_list/components/ci_admin_variables_spec.js +++ b/spec/frontend/ci_variable_list/components/ci_admin_variables_spec.js @@ -4,8 +4,8 @@ import { GlLoadingIcon, GlTable } from '@gitlab/ui'; import { shallowMount } from '@vue/test-utils'; import createMockApollo from 'helpers/mock_apollo_helper'; import waitForPromises from 'helpers/wait_for_promises'; -import createFlash from '~/flash'; -import { resolvers } from '~/ci_variable_list/graphql/resolvers'; +import { createAlert } from '~/flash'; +import { resolvers } from '~/ci_variable_list/graphql/settings'; import ciAdminVariables from '~/ci_variable_list/components/ci_admin_variables.vue'; import ciVariableSettings from '~/ci_variable_list/components/ci_variable_settings.vue'; @@ -92,8 +92,8 @@ describe('Ci Admin Variable list', () => { ); }); - it('createFlash was not called', () => { - expect(createFlash).not.toHaveBeenCalled(); + it('createAlert was not called', () => { + expect(createAlert).not.toHaveBeenCalled(); }); }); @@ -104,8 +104,8 @@ describe('Ci Admin Variable list', () => { await createComponentWithApollo(); }); - it('calls createFlash with the expected error message', () => { - expect(createFlash).toHaveBeenCalledWith({ message: variableFetchErrorText }); + it('calls createAlert with the expected error message', () => { + expect(createAlert).toHaveBeenCalledWith({ message: variableFetchErrorText }); }); }); }); @@ -153,7 +153,7 @@ describe('Ci Admin Variable list', () => { await nextTick(); expect(wrapper.vm.$apollo.mutate).toHaveBeenCalled(); - expect(createFlash).toHaveBeenCalledWith({ message: graphQLErrorMessage }); + expect(createAlert).toHaveBeenCalledWith({ message: graphQLErrorMessage }); }, ); @@ -171,7 +171,7 @@ describe('Ci Admin Variable list', () => { await findCiSettings().vm.$emit(event, newVariable); expect(wrapper.vm.$apollo.mutate).toHaveBeenCalled(); - expect(createFlash).toHaveBeenCalledWith({ message: genericMutationErrorText }); + expect(createAlert).toHaveBeenCalledWith({ message: genericMutationErrorText }); }, ); }); |