fix: cache ongoing parseFile() calls, fixes #416

This commit is contained in:
Harttle
2021-10-16 21:07:48 +08:00
committed by harttle
parent c58a116513
commit 8894cbfe6e
8 changed files with 63 additions and 32 deletions
-3
View File
@@ -155,10 +155,7 @@ describe('LiquidOptions#cache', function () {
cache: true
})
mock({ '/root/foo.html': 'foo' })
mock({ '/root/bar.html': 'bar' })
expect(engine.renderFileSync('foo')).to.equal('foo')
expect(engine.renderFileSync('bar')).to.equal('bar')
mock({ '/root/foo.html': 'bar' })
expect(engine.renderFileSync('foo')).to.equal('foo')
})