feat: export toValueSync & defaultOptions to evaluate expression, see #527

This commit is contained in:
Harttle
2022-08-15 01:53:48 +08:00
committed by Harttle
parent 753e8f94c0
commit e874b4060b
6 changed files with 13 additions and 6 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ describe('Tokenizer', function () {
const trie = createTrie(defaultOperators)
it('should read quoted', () => {
expect(new Tokenizer('"foo" ff', trie).readQuoted()!.getText()).to.equal('"foo"')
expect(new Tokenizer('"foo" ff').readQuoted()!.getText()).to.equal('"foo"')
expect(new Tokenizer(' "foo"ff', trie).readQuoted()!.getText()).to.equal('"foo"')
})
it('should read value', () => {