From af65d13038dcdeaf93c5c718cbc74c20120c6a22 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 20 Aug 2023 12:42:06 +0530 Subject: feat: implements function call and adds support for recursion --- tests/eval.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/eval.spec.ts b/tests/eval.spec.ts index d61a470..2b226f7 100644 --- a/tests/eval.spec.ts +++ b/tests/eval.spec.ts @@ -1,5 +1,5 @@ import { EvalActions, EvalValue, evalExpr } from '../src/eval' -import { Expr, exprParser, parseExpr } from '../src/parser' +import { Expr, parseExpr } from '../src/parser' describe('eval', () => { const deps: EvalActions = { @@ -18,6 +18,7 @@ describe('eval', () => { addChildren: jest.fn(), removeElement: jest.fn(), callMethod: jest.fn(), + evaluateInScope: jest.fn(), } fdescribe('function/call', () => { -- cgit v1.3.1