diff options
Diffstat (limited to 'spec/frontend/admin/deploy_keys/components/table_spec.js')
-rw-r--r-- | spec/frontend/admin/deploy_keys/components/table_spec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/frontend/admin/deploy_keys/components/table_spec.js b/spec/frontend/admin/deploy_keys/components/table_spec.js index a18506c0916..4d4a2caedde 100644 --- a/spec/frontend/admin/deploy_keys/components/table_spec.js +++ b/spec/frontend/admin/deploy_keys/components/table_spec.js @@ -9,7 +9,7 @@ import { stubComponent } from 'helpers/stub_component'; import DeployKeysTable from '~/admin/deploy_keys/components/table.vue'; import TimeAgoTooltip from '~/vue_shared/components/time_ago_tooltip.vue'; import Api, { DEFAULT_PER_PAGE } from '~/api'; -import createFlash from '~/flash'; +import { createAlert } from '~/flash'; jest.mock('~/api'); jest.mock('~/flash'); @@ -243,7 +243,7 @@ describe('DeployKeysTable', () => { itRendersTheEmptyState(); it('displays flash', () => { - expect(createFlash).toHaveBeenCalledWith({ + expect(createAlert).toHaveBeenCalledWith({ message: DeployKeysTable.i18n.apiErrorMessage, captureError: true, error, |