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