diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-07 00:11:21 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-07 00:11:21 +0300 |
commit | 09fd08f7e5db4514ce82223ab9a28ed8f823fb17 (patch) | |
tree | 764e4805ad6874358f26426c1e66611e0b377a87 /spec/frontend/environments/new_environment_spec.js | |
parent | 33998a0e768263828f497685ae030f585193317f (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/environments/new_environment_spec.js')
-rw-r--r-- | spec/frontend/environments/new_environment_spec.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/frontend/environments/new_environment_spec.js b/spec/frontend/environments/new_environment_spec.js index 016d9571094..a8cc05b297b 100644 --- a/spec/frontend/environments/new_environment_spec.js +++ b/spec/frontend/environments/new_environment_spec.js @@ -5,7 +5,7 @@ import waitForPromises from 'helpers/wait_for_promises'; import NewEnvironment from '~/environments/components/new_environment.vue'; import { createAlert } from '~/flash'; import axios from '~/lib/utils/axios_utils'; -import { HTTP_STATUS_OK } from '~/lib/utils/http_status'; +import { HTTP_STATUS_BAD_REQUEST, HTTP_STATUS_OK } from '~/lib/utils/http_status'; import { visitUrl } from '~/lib/utils/url_utility'; jest.mock('~/lib/utils/url_utility'); @@ -96,7 +96,7 @@ describe('~/environments/components/new.vue', () => { it('shows errors on error', async () => { const expected = { name: 'test', url: 'https://google.ca' }; - await submitForm(expected, [400, { message: ['name taken'] }]); + await submitForm(expected, [HTTP_STATUS_BAD_REQUEST, { message: ['name taken'] }]); expect(createAlert).toHaveBeenCalledWith({ message: 'name taken' }); expect(showsLoading()).toBe(false); |