From 525ea86681c8dc1fc52250ee432075fcc51dd582 Mon Sep 17 00:00:00 2001 From: Willy Date: Mon, 5 Feb 2018 00:06:59 -0700 Subject: [PATCH] Fix test --- src/App.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App.test.js b/src/App.test.js index 3650059..ad1a080 100644 --- a/src/App.test.js +++ b/src/App.test.js @@ -5,8 +5,9 @@ import { MemoryRouter } from 'react-router-dom'; import * as getEnvironmentVariableModule from './utils/getEnvironmentVariables'; const localStorageMock = { - getItem: jest.fn(), + getItem: jest.fn().mockReturnValue(null), setItem: jest.fn(), + removeItem: jest.fn(), clear: jest.fn() }; global.localStorage = localStorageMock;