refactor: strictly typed

This commit is contained in:
harttle
2019-02-23 00:49:54 +08:00
parent 51f7e66f60
commit 5b6100d12b
86 changed files with 2630 additions and 2590 deletions
+2 -2
View File
@@ -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/)
})
})