diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-20 14:10:13 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-20 14:10:13 +0300 |
commit | 0ea3fcec397b69815975647f5e2aa5fe944a8486 (patch) | |
tree | 7979381b89d26011bcf9bdc989a40fcc2f1ed4ff /spec/frontend/behaviors/markdown/render_mermaid_spec.js | |
parent | 72123183a20411a36d607d70b12d57c484394c8e (diff) |
Add latest changes from gitlab-org/gitlab@15-1-stable-eev15.1.0-rc42
Diffstat (limited to 'spec/frontend/behaviors/markdown/render_mermaid_spec.js')
-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, - }), - ); - }); -}); |