Skip to content

Commit

Permalink
modified calculator mock functions to pass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
japamat committed Jun 20, 2019
1 parent 7b75140 commit 6966d03
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/actions/action-creators.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
})
Expand Down

0 comments on commit 6966d03

Please sign in to comment.