mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
36 lines
693 B
JavaScript
36 lines
693 B
JavaScript
import { mount } from '@vue/test-utils'
|
|
import changePassword from './change-password'
|
|
|
|
const localVue = global.localVue
|
|
|
|
describe('change-password', () => {
|
|
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)
|
|
})
|
|
})
|
|
})
|