mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
coverage Change.spec.js
This commit is contained in:
parent
6773633282
commit
7365aa09c1
@ -126,21 +126,18 @@ describe('ChangePassword.vue', () => {
|
||||
})
|
||||
})
|
||||
|
||||
// TODO This is not a valid testcase - we have to decide if we catch the same password on clientside
|
||||
/* describe('mutation rejects', () => {
|
||||
describe('mutation rejects', () => {
|
||||
beforeEach(async () => {
|
||||
await wrapper.find('input#oldPassword').setValue('supersecret')
|
||||
await wrapper.find('input#password').setValue('supersecret')
|
||||
await wrapper.find('input#passwordConfirmation').setValue('supersecret')
|
||||
await wrapper.find('form').trigger('submit')
|
||||
})
|
||||
|
||||
it('displays error message', async () => {
|
||||
await wrapper.find('form').trigger('submit')
|
||||
await mocks.$apollo.mutate
|
||||
|
||||
it('displays error message', async () => {
|
||||
expect(mocks.$toast.error).toHaveBeenCalledWith('Ouch!')
|
||||
})
|
||||
}) */
|
||||
})
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user