diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-09 15:08:25 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-09 15:08:25 +0300 |
commit | 48d25238c386a89e8a6af218eeb290936a8f7595 (patch) | |
tree | 68943880d54468655d103dd6ef0aafbba246c532 /spec/frontend/behaviors | |
parent | 5f2a8d5813e1123f06fa7b43d404ea524d9215fc (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/behaviors')
-rw-r--r-- | spec/frontend/behaviors/markdown/render_mermaid_spec.js | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/spec/frontend/behaviors/markdown/render_mermaid_spec.js b/spec/frontend/behaviors/markdown/render_mermaid_spec.js deleted file mode 100644 index 51a345cab0e..00000000000 --- a/spec/frontend/behaviors/markdown/render_mermaid_spec.js +++ /dev/null @@ -1,25 +0,0 @@ -import { initMermaid } from '~/behaviors/markdown/render_mermaid'; -import * as ColorUtils from '~/lib/utils/color_utils'; - -describe('Render mermaid diagrams for Gitlab Flavoured Markdown', () => { - it.each` - darkMode | expectedTheme - ${false} | ${'neutral'} - ${true} | ${'dark'} - `('is $darkMode $expectedTheme', async ({ darkMode, expectedTheme }) => { - jest.spyOn(ColorUtils, 'darkModeEnabled').mockImplementation(() => darkMode); - - const mermaid = { - initialize: jest.fn(), - }; - - await initMermaid(mermaid); - - expect(mermaid.initialize).toHaveBeenCalledTimes(1); - expect(mermaid.initialize).toHaveBeenCalledWith( - expect.objectContaining({ - theme: expectedTheme, - }), - ); - }); -}); |