Files
liquidjs/test/e2e/eval-value.ts
T
2019-02-23 00:49:54 +08:00

12 lines
318 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', function () {
expect(() => engine.evalValue('{{"foo"}}', null as any)).to.throw(/scope undefined/)
})
})