mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 12:20:40 -07:00
refactor: strictly typed
This commit is contained in:
@@ -2,10 +2,10 @@ import { expect } from 'chai'
|
||||
import Liquid from '../..'
|
||||
|
||||
describe('.evalValue()', function () {
|
||||
var engine
|
||||
var engine: Liquid
|
||||
beforeEach(() => { engine = new Liquid() })
|
||||
|
||||
it('should throw when scope undefined', function () {
|
||||
expect(() => engine.evalValue('{{"foo"}}')).to.throw(/scope undefined/)
|
||||
expect(() => engine.evalValue('{{"foo"}}', null as any)).to.throw(/scope undefined/)
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user