coverage Change.spec.js

This commit is contained in:
Ulf Gebhardt 2021-04-24 02:08:19 +02:00
parent 6773633282
commit 7365aa09c1
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -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!')
})
}) */
})
})
})
})