mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 05:50:43 -07:00
chore(TypeScript): fix linting and generate .d.ts
This commit is contained in:
+2
-2
@@ -7,13 +7,13 @@ const expect = chai.expect
|
||||
describe('Liquid', function () {
|
||||
describe('#constructor()', function () {
|
||||
it('should throw on illegal root', function () {
|
||||
expect(() => new (Liquid as any)({root: {}})).to.throw(/illegal root/)
|
||||
expect(() => new (Liquid as any)({ root: {} })).to.throw(/illegal root/)
|
||||
})
|
||||
})
|
||||
describe('#plugin()', function () {
|
||||
it('should call plugin on the instance', async function () {
|
||||
const engine = new Liquid()
|
||||
engine.plugin(function (Liquid) {
|
||||
engine.plugin(function () {
|
||||
this.registerFilter('foo', x => `foo${x}foo`)
|
||||
})
|
||||
const html = await engine.parseAndRender('{{"bar"|foo}}')
|
||||
|
||||
Reference in New Issue
Block a user