mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Update tests
This commit is contained in:
parent
3c8a59c01b
commit
71f3dd73aa
@ -97,8 +97,9 @@ describe('ChangePassword.vue', () => {
|
||||
})
|
||||
|
||||
describe('submit form', () => {
|
||||
beforeEach(async () => {
|
||||
beforeEach(async (done) => {
|
||||
await wrapper.find('form').trigger('submit')
|
||||
done()
|
||||
})
|
||||
|
||||
it('calls changePassword mutation', () => {
|
||||
@ -122,14 +123,14 @@ describe('ChangePassword.vue', () => {
|
||||
wrapper.find('form').trigger('submit')
|
||||
})
|
||||
|
||||
it('calls auth/SET_TOKEN with response', async () => {
|
||||
it('calls auth/SET_TOKEN with response', () => {
|
||||
expect(mocks.$store.commit).toHaveBeenCalledWith(
|
||||
'auth/SET_TOKEN',
|
||||
'NEWTOKEN'
|
||||
)
|
||||
})
|
||||
|
||||
it('displays success message', async () => {
|
||||
it('displays success message', () => {
|
||||
expect(mocks.$t).toHaveBeenCalledWith(
|
||||
'settings.security.change-password.success'
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user