mirror of
https://github.com/harttle/liquidjs.git
synced 2026-10-02 16:45:14 -07:00
test case for Regexp rendering
This commit is contained in:
@@ -51,6 +51,10 @@ describe('util/underscore', function () {
|
|||||||
it('should return "undefined" for undefined', function () {
|
it('should return "undefined" for undefined', function () {
|
||||||
expect(_.stringify(undefined)).to.equal('undefined')
|
expect(_.stringify(undefined)).to.equal('undefined')
|
||||||
})
|
})
|
||||||
|
it('should return regex string for RegExp', function () {
|
||||||
|
const reg = /foo/g
|
||||||
|
expect(_.stringify(reg)).to.equal('/foo/g')
|
||||||
|
})
|
||||||
it('should return locale string for date', function () {
|
it('should return locale string for date', function () {
|
||||||
const date = new Date('2018-10-01T14:51:00.000Z')
|
const date = new Date('2018-10-01T14:51:00.000Z')
|
||||||
// Mon Oct 01 2018 22:51:00 GMT+0800 (CST)
|
// Mon Oct 01 2018 22:51:00 GMT+0800 (CST)
|
||||||
|
|||||||
Reference in New Issue
Block a user