mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 12:50:38 -07:00
@@ -0,0 +1,19 @@
|
||||
import { Parser } from './parser'
|
||||
import { Liquid, TokenKind } from '..'
|
||||
|
||||
describe('Parser', () => {
|
||||
it('should coerce input to string', () => {
|
||||
const parser = new Parser(new Liquid())
|
||||
const templates = parser.parse({} as any)
|
||||
expect(templates.length).toEqual(1)
|
||||
expect(templates[0]).toMatchObject({
|
||||
str: '[object Object]',
|
||||
token: {
|
||||
kind: TokenKind.HTML,
|
||||
input: '[object Object]',
|
||||
begin: 0,
|
||||
end: 15
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user