mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-27 19:42:11 +10:00
Disable logging for signup test
This commit is contained in:
parent
e1a820fa18
commit
2eea847df9
1 changed files with 3 additions and 0 deletions
|
|
@ -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]]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue