From b320ef30fcce842bee7d77d8ae69af13395c70e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Wed, 19 Dec 2018 18:12:10 +0100 Subject: [PATCH] Fix lint --- store/auth.test.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/store/auth.test.js b/store/auth.test.js index e05becb57..98bd1ce13 100644 --- a/store/auth.test.js +++ b/store/auth.test.js @@ -134,17 +134,20 @@ 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' }) - } catch(err) {} // ignore + await action( + { commit }, + { email: 'user@example.org', password: 'wrong' } + ) + } catch (err) {} // ignore expect(commit.mock.calls).toEqual( expect.arrayContaining([ ['SET_PENDING', true],