aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2023-08-10 18:18:46 +0530
committerAkshay Nair <phenax5@gmail.com>2023-08-10 18:18:46 +0530
commitdb97b1a9c42fe945ca37256f5ee18d52c6aa32b4 (patch)
tree1da3da4a99192be8ad10b2931d447c2cc3f45036 /tests
parent6a04167058b59b54b183104a1cf1b1b2cf8d7e9a (diff)
downloadcss-everything-db97b1a9c42fe945ca37256f5ee18d52c6aa32b4.tar.gz
css-everything-db97b1a9c42fe945ca37256f5ee18d52c6aa32b4.zip
feat: adds parser for simple expressions
Diffstat (limited to '')
-rw-r--r--tests/parse-expr.spec.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/parse-expr.spec.ts b/tests/parse-expr.spec.ts
new file mode 100644
index 0000000..00097a4
--- /dev/null
+++ b/tests/parse-expr.spec.ts
@@ -0,0 +1,9 @@
+import { parse } from '../src/parse-expr'
+import * as P from '../src/utils/parser-comb'
+
+describe('parser', () => {
+ it('should die', () => {
+ const res = parse('hello(test)')
+ expect(res).toEqual(['hello', '(test, 1)'])
+ })
+})