diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 21:25:58 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 21:25:58 +0300 |
commit | a5f4bba440d7f9ea47046a0a561d49adf0a1e6d4 (patch) | |
tree | fb69158581673816a8cd895f9d352dcb3c678b1e /spec/frontend/protected_branches/protected_branch_edit_spec.js | |
parent | d16b2e8639e99961de6ddc93909f3bb5c1445ba1 (diff) |
Add latest changes from gitlab-org/gitlab@14-0-stable-eev14.0.0-rc42
Diffstat (limited to 'spec/frontend/protected_branches/protected_branch_edit_spec.js')
-rw-r--r-- | spec/frontend/protected_branches/protected_branch_edit_spec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/frontend/protected_branches/protected_branch_edit_spec.js b/spec/frontend/protected_branches/protected_branch_edit_spec.js index 40e31e24a14..b41b5028736 100644 --- a/spec/frontend/protected_branches/protected_branch_edit_spec.js +++ b/spec/frontend/protected_branches/protected_branch_edit_spec.js @@ -1,7 +1,7 @@ import MockAdapter from 'axios-mock-adapter'; import $ from 'jquery'; import { TEST_HOST } from 'helpers/test_constants'; -import { deprecatedCreateFlash as flash } from '~/flash'; +import createFlash from '~/flash'; import axios from '~/lib/utils/axios_utils'; import ProtectedBranchEdit from '~/protected_branches/protected_branch_edit'; @@ -69,7 +69,7 @@ describe('ProtectedBranchEdit', () => { expect(mock.history.patch).toHaveLength(1); expect(toggle).not.toBeDisabled(); - expect(flash).not.toHaveBeenCalled(); + expect(createFlash).not.toHaveBeenCalled(); })); }); @@ -81,7 +81,7 @@ describe('ProtectedBranchEdit', () => { it('flashes error', () => axios.waitForAll().then(() => { - expect(flash).toHaveBeenCalled(); + expect(createFlash).toHaveBeenCalled(); })); }); }); |