From b115b2735743c5cfe0d3c11d18a81189ff01e987 Mon Sep 17 00:00:00 2001 From: Brian McCall Date: Wed, 10 Jan 2018 17:57:14 -0800 Subject: [PATCH] Inline calls to new LocalStorage() --- src/setup.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/setup.js b/src/setup.js index efe456a..c5cbeb0 100644 --- a/src/setup.js +++ b/src/setup.js @@ -1,9 +1,4 @@ import { LocalStorage } from './localstorage'; -const local = new LocalStorage(); -const session = new LocalStorage(); - -global.localStorage = local; -global.sessionStorage = session; - - +global.localStorage = new LocalStorage(jest); +global.sessionStorage = new LocalStorage(jest);