Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add setTimezone() chainable test

  • Loading branch information...
commit e6857eb394118aff3e3686030fca32f803e531b7 1 parent b86d5b1
@Atinux Atinux authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 test/date.js
View
6 test/date.js
@@ -52,6 +52,12 @@ describe('Date', function () {
initial.should.equal(process.env.TZ)
})
+ it('should be chainable', function () {
+ var initial = process.env.TZ
+ , d = new time.Date().setTimezone('America/Argentina/San_Juan')
+ d.getTimezone().should.equal('America/Argentina/San_Juan')
+ })
+
it('should change the "timezone offset"', function () {
var d = new time.Date()
, offset = d.getTimezoneOffset()
Please sign in to comment.
Something went wrong with that request. Please try again.