From ad5decc2853d84ba7dc3bf76b9f7870498b0721c Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Thu, 7 Sep 2017 21:35:09 +0200 Subject: [PATCH] fix unit tests --- test/client/unit/specs/store/actions/user.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/client/unit/specs/store/actions/user.js b/test/client/unit/specs/store/actions/user.js index 38739d8c45..2e9e7e579d 100644 --- a/test/client/unit/specs/store/actions/user.js +++ b/test/client/unit/specs/store/actions/user.js @@ -45,7 +45,7 @@ describe('user actions', () => { const user = {_id: 2}; sandbox.stub(axios, 'get').withArgs('/api/v3/user').returns(Promise.resolve({data: {data: user}})); - await store.dispatch('user:fetch', true); + await store.dispatch('user:fetch', {forceLoad: true}); expect(store.state.user.data).to.equal(user); expect(store.state.user.loadingStatus).to.equal('LOADED');