Permalink
Browse files

test: fix 2-space tabs

  • Loading branch information...
TooTallNate committed Nov 23, 2012
1 parent 27ecbf2 commit d3c6fea136fd428b4a010826f44855b758d22839
Showing with 24 additions and 24 deletions.
  1. +24 −24 test/date.js
View
@@ -5,38 +5,38 @@ describe('Date', function () {
describe('constructor', function() {
- it('should parse strings relative to TZ', function() {
+ it('should parse strings relative to TZ', function() {
- var d = new time.Date('2012-1-12 02:00 PM', 'America/New_York')
- d.getTime().should.equal(1326394800000)
- d.getTimezone().should.equal('America/New_York')
+ var d = new time.Date('2012-1-12 02:00 PM', 'America/New_York')
+ d.getTime().should.equal(1326394800000)
+ d.getTimezone().should.equal('America/New_York')
- d = new time.Date('2012-1-12 02:00 PM', 'America/Los_Angeles')
- d.getTime().should.equal(1326405600000)
- d.getTimezone().should.equal('America/Los_Angeles')
- })
+ d = new time.Date('2012-1-12 02:00 PM', 'America/Los_Angeles')
+ d.getTime().should.equal(1326405600000)
+ d.getTimezone().should.equal('America/Los_Angeles')
+ })
- it('should interpret date parts relative to TZ', function() {
+ it('should interpret date parts relative to TZ', function() {
- var d = new time.Date(2012, 0, 12, 14, 'America/New_York')
- d.getTime().should.equal(1326394800000)
- d.getFullYear().should.equal(2012)
- d.getTimezone().should.equal('America/New_York')
+ var d = new time.Date(2012, 0, 12, 14, 'America/New_York')
+ d.getTime().should.equal(1326394800000)
+ d.getFullYear().should.equal(2012)
+ d.getTimezone().should.equal('America/New_York')
- d = new time.Date(2012, 0, 12, 14, 'America/Los_Angeles')
- d.getTime().should.equal(1326405600000)
- d.getTimezone().should.equal('America/Los_Angeles')
- })
+ d = new time.Date(2012, 0, 12, 14, 'America/Los_Angeles')
+ d.getTime().should.equal(1326405600000)
+ d.getTimezone().should.equal('America/Los_Angeles')
+ })
- it('should accept milliseconds regardless of TZ', function() {
+ it('should accept milliseconds regardless of TZ', function() {
- var d1 = new time.Date(1352005200000, 'America/New_York')
- var d2 = new time.Date(1352005200000, 'America/Los_Angeles')
+ var d1 = new time.Date(1352005200000, 'America/New_York')
+ var d2 = new time.Date(1352005200000, 'America/Los_Angeles')
- d1.getTime().should.equal(d2.getTime())
- d1.getTimezone().should.equal('America/New_York')
- d2.getTimezone().should.equal('America/Los_Angeles')
- })
+ d1.getTime().should.equal(d2.getTime())
+ d1.getTimezone().should.equal('America/New_York')
+ d2.getTimezone().should.equal('America/Los_Angeles')
+ })
})
describe('#setTimezone()', function () {

0 comments on commit d3c6fea

Please sign in to comment.