Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #35 from Atinux/patch-2

Add setTimezone() chainable test
  • Loading branch information...
commit 0f268981194e744e7b076fb63442b4b69a8bb39a 2 parents 5bdac21 + e6857eb
@TooTallNate 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.