From c005a8655e3668210b1778b7932911d630de4979 Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Sun, 16 Jul 2017 11:57:41 -0700 Subject: [PATCH] Fixed tests --- frontend/stores/CollectionsStore.test.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/stores/CollectionsStore.test.js b/frontend/stores/CollectionsStore.test.js index ef39ccbe..358f5bd5 100644 --- a/frontend/stores/CollectionsStore.test.js +++ b/frontend/stores/CollectionsStore.test.js @@ -10,8 +10,14 @@ describe('CollectionsStore', () => { let store; beforeEach(() => { + const cache = { + getItem: jest.fn(() => Promise.resolve()), + setItem: jest.fn(() => {}), + }; + store = new CollectionsStore({ teamId: 123, + cache, }); });