diff --git a/webapp/pages/password-reset.spec.js b/webapp/pages/password-reset.spec.js new file mode 100644 index 000000000..416495910 --- /dev/null +++ b/webapp/pages/password-reset.spec.js @@ -0,0 +1,38 @@ +import { config, mount } from '@vue/test-utils' +import PasswordReset from './password-reset.vue' + +const localVue = global.localVue + +config.stubs['client-only'] = '' +config.stubs['nuxt-child'] = '' + +describe('password-reset.vue', () => { + let wrapper + let mocks + + beforeEach(() => { + mocks = { + $t: (t) => t, + $i18n: { + locale: () => 'en', + }, + } + }) + + describe('mount', () => { + const Wrapper = () => { + return mount(PasswordReset, { + mocks, + localVue, + }) + } + + beforeEach(() => { + wrapper = Wrapper() + }) + + it('renders', () => { + expect(wrapper.is('div')).toBe(true) + }) + }) +})