diff options
| author | Akshay Nair <phenax5@gmail.com> | 2023-08-10 18:18:46 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2023-08-10 18:18:46 +0530 |
| commit | db97b1a9c42fe945ca37256f5ee18d52c6aa32b4 (patch) | |
| tree | 1da3da4a99192be8ad10b2931d447c2cc3f45036 /tests | |
| parent | 6a04167058b59b54b183104a1cf1b1b2cf8d7e9a (diff) | |
| download | css-everything-db97b1a9c42fe945ca37256f5ee18d52c6aa32b4.tar.gz css-everything-db97b1a9c42fe945ca37256f5ee18d52c6aa32b4.zip | |
feat: adds parser for simple expressions
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/parse-expr.spec.ts | 9 |
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)']) + }) +}) |
