mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 22:10:41 -07:00
refactor: remove unused lexical regexps
This commit is contained in:
@@ -24,14 +24,19 @@ describe('Value', function () {
|
||||
expect(tpl.filters.length).to.equal(1)
|
||||
expect(tpl.filters[0].args).to.eql([])
|
||||
})
|
||||
|
||||
it('should parse "foo | add: "foo" bar, 3"', function () {
|
||||
const tpl: any = new Value('foo | add: "foo" bar, 3', false)
|
||||
expect(tpl.initial).to.equal('foo')
|
||||
expect(tpl.filters.length).to.equal(1)
|
||||
expect(tpl.filters[0].name).to.eql('add')
|
||||
expect(tpl.filters[0].args).to.eql(['"foo"', '3'])
|
||||
})
|
||||
it('should parse "foo | add: 3, false"', function () {
|
||||
const tpl: any = new Value('foo | add: 3, "foo"', false)
|
||||
expect(tpl.initial).to.equal('foo')
|
||||
expect(tpl.filters.length).to.equal(1)
|
||||
expect(tpl.filters[0].args).to.eql(['3', '"foo"'])
|
||||
})
|
||||
|
||||
it('should parse "foo | add: "|", 3', function () {
|
||||
const tpl: any = new Value('foo | add: "|", 3', false)
|
||||
expect(tpl.initial).to.equal('foo')
|
||||
|
||||
Reference in New Issue
Block a user