mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 12:50:38 -07:00
feat: create trie programmatically in options
This commit is contained in:
committed by
Jun Yang
parent
8734e2e6ce
commit
befc33c4eb
@@ -6,13 +6,17 @@ import * as sinonChai from 'sinon-chai'
|
||||
import * as sinon from 'sinon'
|
||||
import { Context } from '../../../src/context/context'
|
||||
import { Value } from '../../../src/template/value'
|
||||
import { createTrie } from '../../../src/util/operator-trie'
|
||||
import { defaultOperators } from '../../../src/types'
|
||||
|
||||
chai.use(sinonChai)
|
||||
|
||||
const expect = chai.expect
|
||||
|
||||
describe('Value', function () {
|
||||
const liquid = {} as any
|
||||
const liquid = {
|
||||
options: { operatorsTrie: createTrie(defaultOperators) }
|
||||
} as any
|
||||
|
||||
describe('#constructor()', function () {
|
||||
const filterMap = new FilterMap(false, liquid)
|
||||
|
||||
Reference in New Issue
Block a user