diff options
Diffstat (limited to 'spec/frontend/pages/admin/application_settings/appearances/preview_sign_in/index_spec.js')
-rw-r--r-- | spec/frontend/pages/admin/application_settings/appearances/preview_sign_in/index_spec.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/frontend/pages/admin/application_settings/appearances/preview_sign_in/index_spec.js b/spec/frontend/pages/admin/application_settings/appearances/preview_sign_in/index_spec.js new file mode 100644 index 00000000000..2fec65ad4c8 --- /dev/null +++ b/spec/frontend/pages/admin/application_settings/appearances/preview_sign_in/index_spec.js @@ -0,0 +1,10 @@ +import { renderGFM } from '~/behaviors/markdown/render_gfm'; + +jest.mock('~/behaviors/markdown/render_gfm'); + +describe('Preview sign in', () => { + it('calls `renderGFM` to ensure that all gitlab-flavoured markdown is rendered on the preview sign in page', async () => { + await import('~/pages/sessions/new/index'); + expect(renderGFM).toHaveBeenCalledWith(document.body); + }); +}); |