mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 04:10:40 -07:00
BREAKING CHANGE: remove default export, now should be used like import
{Liquid} from 'liquidjs'
12 lines
335 B
TypeScript
12 lines
335 B
TypeScript
import { expect } from 'chai'
|
|
import { Liquid } from '../..'
|
|
|
|
describe('.evalValue()', function () {
|
|
var engine: Liquid
|
|
beforeEach(() => { engine = new Liquid() })
|
|
|
|
it('should throw when scope undefined', async function () {
|
|
return expect(() => engine.evalValue('{{"foo"}}', null as any)).to.throw(/scope undefined/)
|
|
})
|
|
})
|