fix: break/continue omitting output before them, #123

BREAKING CHANGE: remove default export, now should be used like import
{Liquid} from 'liquidjs'
This commit is contained in:
harttle
2019-08-26 10:15:43 -05:00
committed by Jun Yang
parent 854e12ba53
commit ae45c4622e
99 changed files with 373 additions and 407 deletions
+2 -2
View File
@@ -1,11 +1,11 @@
import { expect } from 'chai'
import Liquid from '../..'
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.be.rejectedWith(/scope undefined/)
return expect(() => engine.evalValue('{{"foo"}}', null as any)).to.throw(/scope undefined/)
})
})