mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 04:40:39 -07:00
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:
@@ -1,10 +1,10 @@
|
||||
import { expect } from 'chai'
|
||||
import Context from '../../../src/context/context'
|
||||
import Token from '../../../src/parser/token'
|
||||
import Tag from '../../../src/template/tag/tag'
|
||||
import { Context } from '../../../src/context/context'
|
||||
import { Token } from '../../../src/parser/token'
|
||||
import { Tag } from '../../../src/template/tag/tag'
|
||||
import { Filter } from '../../../src/template/filter/filter'
|
||||
import Render from '../../../src/render/render'
|
||||
import HTML from '../../../src/template/html'
|
||||
import { Render } from '../../../src/render/render'
|
||||
import { HTML } from '../../../src/template/html'
|
||||
|
||||
describe('render', function () {
|
||||
let render: Render
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import Context from '../../../src/context/context'
|
||||
import { Context } from '../../../src/context/context'
|
||||
import { expect } from 'chai'
|
||||
import { evalExp, evalValue, isTruthy } from '../../../src/render/syntax'
|
||||
|
||||
@@ -62,7 +62,7 @@ describe('render/syntax', function () {
|
||||
|
||||
describe('.evalExp()', function () {
|
||||
it('should throw when scope undefined', async function () {
|
||||
return expect((evalExp as any)('')).to.be.rejectedWith(/scope undefined/)
|
||||
return expect(() => (evalExp as any)('')).to.throw(/scope undefined/)
|
||||
})
|
||||
|
||||
it('should eval simple expression', async function () {
|
||||
|
||||
Reference in New Issue
Block a user