mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 12:50:38 -07:00
fix: stack overflow on large number of templates, #513
This commit is contained in:
@@ -126,11 +126,13 @@ describe('LiquidOptions#cache', function () {
|
||||
extname: '.html',
|
||||
cache: true
|
||||
})
|
||||
try { await engine.renderFile('foo') } catch (err) {}
|
||||
try {
|
||||
await engine.renderFile('foo')
|
||||
} catch (err) {}
|
||||
|
||||
mock({ '/root/foo.html': 'foo' })
|
||||
const y = await engine.renderFile('foo')
|
||||
expect(y).to.equal('foo')
|
||||
const html = await engine.renderFile('foo')
|
||||
expect(html).to.equal('foo')
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user