mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Fix lint
This commit is contained in:
parent
16997ee63d
commit
b320ef30fc
@ -134,16 +134,19 @@ describe('actions', () => {
|
||||
})
|
||||
|
||||
it('populates error messages', async () => {
|
||||
expect(action({ commit }, { email: 'user@example.org', password: 'wrong' }))
|
||||
.rejects
|
||||
.toThrowError('This error is expected.')
|
||||
expect(
|
||||
action({ commit }, { email: 'user@example.org', password: 'wrong' })
|
||||
).rejects.toThrowError('This error is expected.')
|
||||
expect(mutate).toHaveBeenCalled()
|
||||
expect(onLogin).not.toHaveBeenCalled()
|
||||
})
|
||||
|
||||
it('saves pending flags in order', async () => {
|
||||
try {
|
||||
await action({ commit }, { email: 'user@example.org', password: 'wrong' })
|
||||
await action(
|
||||
{ commit },
|
||||
{ email: 'user@example.org', password: 'wrong' }
|
||||
)
|
||||
} catch (err) {} // ignore
|
||||
expect(commit.mock.calls).toEqual(
|
||||
expect.arrayContaining([
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user