mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 20:30:39 -07:00
@@ -207,6 +207,11 @@ describe('Tokenize', function () {
|
||||
expect(token).to.have.property('name', 'plus')
|
||||
expect(token).to.have.property('args').to.deep.equal([])
|
||||
})
|
||||
it('should read null if name not found', function () {
|
||||
const tokenizer = new Tokenizer('|')
|
||||
const token = tokenizer.readFilter()
|
||||
expect(token).to.be.null
|
||||
})
|
||||
it('should read a filter with k/v argument', function () {
|
||||
const tokenizer = new Tokenizer(' | plus: a:1')
|
||||
const token = tokenizer.readFilter()
|
||||
|
||||
Reference in New Issue
Block a user