coverage change-password.spec.js

This commit is contained in:
Ulf Gebhardt 2021-04-25 19:03:21 +02:00
parent d295ba3f65
commit c76b549607
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -0,0 +1,35 @@
import { mount } from '@vue/test-utils'
import changePassword from './change-password.vue'
const localVue = global.localVue
describe('enter-nonce.vue', () => {
let wrapper
let mocks
beforeEach(() => {
mocks = {
$t: jest.fn(),
$route: {
query: jest.fn().mockResolvedValue({ email: 'peter@lustig.de', nonce: '12345' }),
},
$apollo: {
loading: false,
},
}
})
describe('mount', () => {
const Wrapper = () => {
return mount(changePassword, { mocks, localVue })
}
beforeEach(() => {
wrapper = Wrapper()
})
it('renders', () => {
expect(wrapper.findAll('.ds-form')).toHaveLength(1)
})
})
})