From 2eea847df9ae6b060cbf3d2f8140626f1172ecba Mon Sep 17 00:00:00 2001 From: Hannu Lyytikainen Date: Wed, 4 Oct 2017 14:40:21 +0300 Subject: [PATCH] Disable logging for signup test --- src/ducks/Auth.test.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ducks/Auth.test.js b/src/ducks/Auth.test.js index a5ce9baa..0c614f38 100644 --- a/src/ducks/Auth.test.js +++ b/src/ducks/Auth.test.js @@ -17,6 +17,7 @@ import reducer, { signupError, userLogout, } from './Auth.duck'; +import * as log from '../util/log'; // Create a dispatch function that correctly calls the thunk functions // with itself @@ -381,6 +382,8 @@ describe('Auth duck', () => { const email = 'pekka@example.com'; const password = 'some pass'; const params = { email, password, firstName: 'Pekka', lastName: 'Pohjola' }; + // disable error logging + log.error = jest.fn(); return signup(params)(dispatch, getState, sdk).then(() => { expect(sdk.currentUser.create.mock.calls).toEqual([[params]]);