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,10 +1,10 @@
import Liquid from '../..'
import { Liquid, Drop } from '../..'
import { expect, use } from 'chai'
import * as chaiAsPromised from 'chai-as-promised'
use(chaiAsPromised)
class SettingsDrop extends Liquid.Types.Drop {
class SettingsDrop extends Drop {
private foo: string = 'FOO'
public bar () {
return 'BAR'
+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/)
})
})
+1 -1
View File
@@ -2,7 +2,7 @@ import { expect } from 'chai'
import * as request from 'supertest'
import * as express from 'express'
import { resolve } from 'path'
import Liquid from '../..'
import { Liquid } from '../..'
describe('express()', function () {
const root = resolve(__dirname, '../stub/root')
+1 -1
View File
@@ -1,4 +1,4 @@
import Liquid from '../..'
import { Liquid } from '../..'
import { expect, use } from 'chai'
import * as chaiAsPromised from 'chai-as-promised'
+1 -1
View File
@@ -1,4 +1,4 @@
import Liquid from '../..'
import { Liquid } from '../..'
import { expect, use } from 'chai'
import * as chaiAsPromised from 'chai-as-promised'
import { resolve } from 'path'
+1 -1
View File
@@ -1,5 +1,5 @@
import { expect } from 'chai'
import Liquid from '../..'
import { Liquid } from '../..'
const liquid = new Liquid()
+1 -1
View File
@@ -1,4 +1,4 @@
import Liquid from '../../dist/liquid.js'
import { Liquid } from '../../dist/liquid.js'
import * as sinon from 'sinon'
import { expect, use } from 'chai'
import { JSDOM } from 'jsdom'