Skip to content

Commit

Permalink
Update tests to reflect ExpressionParser changes
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Deubler <[email protected]>
  • Loading branch information
TerminalTim committed Jul 12, 2024
1 parent d818e05 commit 83c1255
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/tests/specs/common/expressions/expressions_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ describe('Expressions', function() {

const context = {aName: 'testName', aNumber: 123, aString: 'testString'};
const evalExpression = (exp: JSONExpression, mode = ExpressionMode.static) => {
exprParser.setMode(mode);
return exprParser.evaluate(exp, context);
return exprParser.evaluate(exp, context, mode);
};

it('evaluate simple sum expression', async () => {
Expand Down

0 comments on commit 83c1255

Please sign in to comment.