diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 12:55:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-20 12:55:51 +0300 |
commit | e8d2c2579383897a1dd7f9debd359abe8ae8373d (patch) | |
tree | c42be41678c2586d49a75cabce89322082698334 /spec/frontend/blob_edit | |
parent | fc845b37ec3a90aaa719975f607740c22ba6a113 (diff) |
Add latest changes from gitlab-org/gitlab@14-1-stable-eev14.1.0-rc42
Diffstat (limited to 'spec/frontend/blob_edit')
-rw-r--r-- | spec/frontend/blob_edit/blob_bundle_spec.js | 10 | ||||
-rw-r--r-- | spec/frontend/blob_edit/edit_blob_spec.js | 14 |
2 files changed, 12 insertions, 12 deletions
diff --git a/spec/frontend/blob_edit/blob_bundle_spec.js b/spec/frontend/blob_edit/blob_bundle_spec.js index eecc54be35b..8986dfbfa9c 100644 --- a/spec/frontend/blob_edit/blob_bundle_spec.js +++ b/spec/frontend/blob_edit/blob_bundle_spec.js @@ -3,21 +3,21 @@ import { mockTracking, unmockTracking } from 'helpers/tracking_helper'; import waitForPromises from 'helpers/wait_for_promises'; import blobBundle from '~/blob_edit/blob_bundle'; -import EditorLite from '~/blob_edit/edit_blob'; +import SourceEditor from '~/blob_edit/edit_blob'; jest.mock('~/blob_edit/edit_blob'); describe('BlobBundle', () => { - it('does not load EditorLite by default', () => { + it('does not load SourceEditor by default', () => { blobBundle(); - expect(EditorLite).not.toHaveBeenCalled(); + expect(SourceEditor).not.toHaveBeenCalled(); }); - it('loads EditorLite for the edit screen', async () => { + it('loads SourceEditor for the edit screen', async () => { setFixtures(`<div class="js-edit-blob-form"></div>`); blobBundle(); await waitForPromises(); - expect(EditorLite).toHaveBeenCalled(); + expect(SourceEditor).toHaveBeenCalled(); }); describe('No Suggest Popover', () => { diff --git a/spec/frontend/blob_edit/edit_blob_spec.js b/spec/frontend/blob_edit/edit_blob_spec.js index 3134feedcf3..2be72ded0a2 100644 --- a/spec/frontend/blob_edit/edit_blob_spec.js +++ b/spec/frontend/blob_edit/edit_blob_spec.js @@ -1,12 +1,12 @@ import waitForPromises from 'helpers/wait_for_promises'; import EditBlob from '~/blob_edit/edit_blob'; -import EditorLite from '~/editor/editor_lite'; -import { FileTemplateExtension } from '~/editor/extensions/editor_file_template_ext'; -import { EditorMarkdownExtension } from '~/editor/extensions/editor_markdown_ext'; +import { FileTemplateExtension } from '~/editor/extensions/source_editor_file_template_ext'; +import { EditorMarkdownExtension } from '~/editor/extensions/source_editor_markdown_ext'; +import SourceEditor from '~/editor/source_editor'; -jest.mock('~/editor/editor_lite'); -jest.mock('~/editor/extensions/editor_markdown_ext'); -jest.mock('~/editor/extensions/editor_file_template_ext'); +jest.mock('~/editor/source_editor'); +jest.mock('~/editor/extensions/source_editor_markdown_ext'); +jest.mock('~/editor/extensions/source_editor_file_template_ext'); describe('Blob Editing', () => { const useMock = jest.fn(); @@ -24,7 +24,7 @@ describe('Blob Editing', () => { <textarea id="file-content"></textarea> </form> `); - jest.spyOn(EditorLite.prototype, 'createInstance').mockReturnValue(mockInstance); + jest.spyOn(SourceEditor.prototype, 'createInstance').mockReturnValue(mockInstance); }); afterEach(() => { EditorMarkdownExtension.mockClear(); |