mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
coverage change-password.spec.js
This commit is contained in:
parent
d295ba3f65
commit
c76b549607
35
webapp/pages/password-reset/change-password.spec.js
Normal file
35
webapp/pages/password-reset/change-password.spec.js
Normal 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)
|
||||
})
|
||||
})
|
||||
})
|
||||
Loading…
x
Reference in New Issue
Block a user