Permalink
Browse files

Add setTimezone() chainable test

  • Loading branch information...
1 parent b86d5b1 commit e6857eb394118aff3e3686030fca32f803e531b7 @Atinux Atinux committed Mar 6, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 test/date.js
View
@@ -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()

0 comments on commit e6857eb

Please sign in to comment.