mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 04:40:39 -07:00
fix: `Nil`(null, undefined) now renders as empty string change: `parser.parseValue()` renamed to `parser.parseOutput` change: registered tags/filters become static and shared across different liquid instances
15 lines
357 B
TypeScript
15 lines
357 B
TypeScript
var chai = require('chai')
|
|
var Liquid = require('../..')
|
|
var expect = chai.expect
|
|
|
|
chai.use(require('chai-as-promised'))
|
|
|
|
describe('.evalValue()', function () {
|
|
var engine
|
|
beforeEach(() => engine = new Liquid())
|
|
|
|
it('should throw when scope undefined', function () {
|
|
expect(() => engine.evalValue('{{"foo"}}')).to.throw(/scope undefined/)
|
|
})
|
|
})
|