diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-06 06:07:35 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-06 06:07:35 +0300 |
commit | bdb97ece6809b945927d50effcdf9d284634d4d5 (patch) | |
tree | a5bf5284a9c233f47ca65ce5790a8276b3fade3b /spec/frontend/lib | |
parent | bd9860f6911096e8ffe269797b90edd611f9b40f (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/lib')
-rw-r--r-- | spec/frontend/lib/utils/rails_ujs_spec.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/frontend/lib/utils/rails_ujs_spec.js b/spec/frontend/lib/utils/rails_ujs_spec.js index da9cc5c6f3c..8ca4dfc9340 100644 --- a/spec/frontend/lib/utils/rails_ujs_spec.js +++ b/spec/frontend/lib/utils/rails_ujs_spec.js @@ -1,5 +1,6 @@ import { setHTMLFixture } from 'helpers/fixtures'; import waitForPromises from 'helpers/wait_for_promises'; +import { HTTP_STATUS_OK } from '~/lib/utils/http_status'; beforeAll(async () => { // @rails/ujs expects jQuery.ajaxPrefilter to exist if jQuery exists at @@ -20,7 +21,7 @@ function mockXHRResponse({ responseText, responseContentType } = {}) { jest.spyOn(global.XMLHttpRequest.prototype, 'send').mockImplementation(function send() { Object.defineProperties(this, { readyState: { value: XMLHttpRequest.DONE }, - status: { value: 200 }, + status: { value: HTTP_STATUS_OK }, response: { value: responseText }, }); this.onreadystatechange(); |