diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-29 09:09:11 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-29 09:09:11 +0300 |
commit | 6f768d1c9e57f38a1bf88a25ab12262f70e1eda2 (patch) | |
tree | 6a0c371a6ec8d70f7318aed566b5fbaf7462fae3 /spec/frontend/zen_mode_spec.js | |
parent | 4569c7a83d8a16c4b8c815e64d3dedd42ec6c7ca (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/zen_mode_spec.js')
-rw-r--r-- | spec/frontend/zen_mode_spec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/frontend/zen_mode_spec.js b/spec/frontend/zen_mode_spec.js index 3e66380ac46..97a9f95e8e1 100644 --- a/spec/frontend/zen_mode_spec.js +++ b/spec/frontend/zen_mode_spec.js @@ -2,8 +2,9 @@ import axios from 'axios'; import MockAdapter from 'axios-mock-adapter'; import Dropzone from 'dropzone'; import $ from 'jquery'; +import htmlSnippetsShow from 'test_fixtures/snippets/show.html'; import { Mousetrap } from '~/lib/mousetrap'; -import { loadHTMLFixture, resetHTMLFixture } from 'helpers/fixtures'; +import { setHTMLFixture, resetHTMLFixture } from 'helpers/fixtures'; import GLForm from '~/gl_form'; import * as utils from '~/lib/utils/common_utils'; import { HTTP_STATUS_OK } from '~/lib/utils/http_status'; @@ -13,7 +14,6 @@ describe('ZenMode', () => { let mock; let zen; let dropzoneForElementSpy; - const fixtureName = 'snippets/show.html'; const getTextarea = () => $('.notes-form textarea'); @@ -37,7 +37,7 @@ describe('ZenMode', () => { mock = new MockAdapter(axios); mock.onGet().reply(HTTP_STATUS_OK); - loadHTMLFixture(fixtureName); + setHTMLFixture(htmlSnippetsShow); const form = $('.js-new-note-form'); new GLForm(form); // eslint-disable-line no-new |