From 6966d036a4d5f4a754c0f67d9548f818f11c5695 Mon Sep 17 00:00:00 2001 From: Jason Matthias Date: Thu, 20 Jun 2019 15:31:19 -0700 Subject: [PATCH] modified calculator mock functions to pass tests --- src/actions/action-creators.test.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/actions/action-creators.test.js b/src/actions/action-creators.test.js index dd752b5..cdd477b 100644 --- a/src/actions/action-creators.test.js +++ b/src/actions/action-creators.test.js @@ -45,7 +45,10 @@ const desmosMock = { GraphingCalculator: jest.fn(() => { return { asyncScreenshot: (opts, cb) => cb(''), - getExpressions: () => [{ id: 1, latex: 'x = 3' }, { id: 2, latex: '' }], + getExpressions: () => [ + { id: 1, type: 'expression', latex: 'x = 3' }, + { id: 2, latex: '' } + ], setExpression: () => null }; })