mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 12:20:40 -07:00
16 lines
481 B
TypeScript
16 lines
481 B
TypeScript
import { normalize } from '../../src/liquid-options'
|
|
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', () => {
|
|
const options = normalize({ cache: false })
|
|
expect(JSON.stringify(options)).to.equal('{}')
|
|
})
|
|
})
|
|
})
|