summaryrefslogtreecommitdiff
path: root/tests/eval.spec.ts
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2023-08-20 12:42:06 +0530
committerAkshay Nair <phenax5@gmail.com>2023-08-20 12:42:06 +0530
commitaf65d13038dcdeaf93c5c718cbc74c20120c6a22 (patch)
treee1d36b54a9c8db4660d61dde03dbcf8d50cde76e /tests/eval.spec.ts
parentf61677bbc3ae32cc460014cffe4d9ae9264291c5 (diff)
downloadcss-everything-af65d13038dcdeaf93c5c718cbc74c20120c6a22.tar.gz
css-everything-af65d13038dcdeaf93c5c718cbc74c20120c6a22.zip
feat: implements function call and adds support for recursion
Diffstat (limited to '')
-rw-r--r--tests/eval.spec.ts3
1 files changed, 2 insertions, 1 deletions
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', () => {