mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 04:10:40 -07:00
fix: some filters on undefined variable throws, #140
This commit is contained in:
@@ -27,12 +27,6 @@ describe('util/underscore', function () {
|
||||
})
|
||||
})
|
||||
describe('.stringify()', function () {
|
||||
it('should respect to toLiquid() method', function () {
|
||||
expect(_.stringify({ toLiquid: () => 'foo' })).to.equal('foo')
|
||||
})
|
||||
it('should recursively call toLiquid()', function () {
|
||||
expect(_.stringify({ toLiquid: () => ({ toLiquid: () => 'foo' }) })).to.equal('foo')
|
||||
})
|
||||
it('should return "" for null', function () {
|
||||
expect(_.stringify(null)).to.equal('')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user