diff --git a/test/e2e/drop.ts b/test/e2e/drop.ts index fafec40d9..8ee11a59a 100644 --- a/test/e2e/drop.ts +++ b/test/e2e/drop.ts @@ -9,6 +9,13 @@ describe('drop', function () { beforeEach(function () { engine = new Liquid() }) + it('should support liquid_method_missing', async function () { + let i = 0 + const src = `{{settings.foo}},{{settings.foo}},{{settings.foo}}` + const ctx = { settings: { liquid_method_missing: () => i++ } } + const html = await engine.parseAndRender(src, ctx) + return expect(html).to.equal('0,1,2') + }) it('should test blank strings', async function () { const src = ` {% unless settings.fp_heading == blank %}