fix: relative root (by default) yields LookupError, fixes #419, #424, also related to #395

This commit is contained in:
Harttle
2021-10-27 23:55:39 +08:00
committed by Harttle
parent 564972ba74
commit aebeae9e1b
7 changed files with 67 additions and 50 deletions
+2 -6
View File
@@ -3,13 +3,9 @@ import { expect } from 'chai'
describe('liquid-options', () => {
describe('.normalize()', () => {
it('should return plain object for empty input', () => {
const options = normalize()
expect(JSON.stringify(options)).to.equal('{}')
})
it('should set falsy cache to undefined', () => {
it('should set cache to undefined if specified to falsy', () => {
const options = normalize({ cache: false })
expect(JSON.stringify(options)).to.equal('{}')
expect(options.cache).to.equal(undefined)
})
})
})