Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/vue_shared/components/markdown/toolbar_spec.js')
-rw-r--r--spec/frontend/vue_shared/components/markdown/toolbar_spec.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/spec/frontend/vue_shared/components/markdown/toolbar_spec.js b/spec/frontend/vue_shared/components/markdown/toolbar_spec.js
index 90d8ce3b500..59f01b7ff7f 100644
--- a/spec/frontend/vue_shared/components/markdown/toolbar_spec.js
+++ b/spec/frontend/vue_shared/components/markdown/toolbar_spec.js
@@ -3,7 +3,6 @@ import Toolbar from '~/vue_shared/components/markdown/toolbar.vue';
import EditorModeSwitcher from '~/vue_shared/components/markdown/editor_mode_switcher.vue';
import { updateText } from '~/lib/utils/text_markdown';
import { setHTMLFixture, resetHTMLFixture } from 'helpers/fixtures';
-import { PROMO_URL } from 'jh_else_ce/lib/utils/url_utility';
jest.mock('~/lib/utils/text_markdown');
@@ -83,28 +82,5 @@ describe('toolbar', () => {
expect(wrapper.emitted('enableContentEditor')).toEqual([[]]);
expect(updateText).not.toHaveBeenCalled();
});
-
- it('does not insert a template text if textarea has some value', () => {
- wrapper.findComponent(EditorModeSwitcher).vm.$emit('switch', true);
-
- expect(updateText).not.toHaveBeenCalled();
- });
-
- it('inserts a "getting started with rich text" template when switched for the first time', () => {
- document.querySelector('textarea').value = '';
-
- wrapper.findComponent(EditorModeSwitcher).vm.$emit('switch', true);
-
- expect(updateText).toHaveBeenCalledWith(
- expect.objectContaining({
- tag: `### Rich text editor
-
-Try out **styling** _your_ content right here or read the [direction](${PROMO_URL}/direction/plan/knowledge/content_editor/).`,
- textArea: document.querySelector('textarea'),
- cursorOffset: 0,
- wrap: false,
- }),
- );
- });
});
});