mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 14:00:39 -07:00
chore(TypeScript): ship Liquid to class
BREAKING CHANGE: calling `Liquid()` without `new` now becomes invalid
This commit is contained in:
@@ -9,7 +9,7 @@ chai.use(chaiAsPromised)
|
||||
describe('cache options', function () {
|
||||
let engine
|
||||
beforeEach(function () {
|
||||
engine = Liquid({
|
||||
engine = new Liquid({
|
||||
root: '/root/',
|
||||
extname: '.html'
|
||||
})
|
||||
@@ -28,7 +28,7 @@ describe('cache options', function () {
|
||||
.then(x => expect(x).to.equal('bar'))
|
||||
})
|
||||
it('should respect cache=true option', function () {
|
||||
engine = Liquid({
|
||||
engine = new Liquid({
|
||||
root: '/root/',
|
||||
extname: '.html',
|
||||
cache: true
|
||||
|
||||
Reference in New Issue
Block a user