mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 12:50:38 -07:00
fix: date from integer, #125
This commit is contained in:
@@ -18,6 +18,14 @@ describe('util/underscore', function () {
|
||||
expect(_.isString(123)).to.be.false
|
||||
})
|
||||
})
|
||||
describe('.isNumber()', function () {
|
||||
it('should return false for "foo"', function () {
|
||||
expect(_.isNumber('foo')).to.be.false
|
||||
})
|
||||
it('should return true for 0', function () {
|
||||
expect(_.isNumber(0)).to.be.true
|
||||
})
|
||||
})
|
||||
describe('.stringify()', function () {
|
||||
it('should respect to toLiquid() method', function () {
|
||||
expect(_.stringify({ toLiquid: () => 'foo' })).to.equal('foo')
|
||||
|
||||
Reference in New Issue
Block a user