Skip to content

Commit

Permalink
Removed test because it will inherently break every year twice across…
Browse files Browse the repository at this point in the history
… the DST leap
  • Loading branch information
mde committed Mar 6, 2014
1 parent 9a7a35f commit 32a09e0
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions test/date.js
Expand Up @@ -52,24 +52,6 @@ tests = {
assert.equal(actual, data);
}

, 'test relativeTime week/weeks switchover': function () {
var dtA = new Date()
, dtB
, res;

dtB = date.add(dtA, 'day', 10);
dtB = date.add(dtB, 'hour', 23);
dtB = date.add(dtB, 'minute', 59);
dtB = date.add(dtB, 'second', 59);
dtB = date.add(dtB, 'millisecond', 999);
res = date.relativeTime(dtA, {now: dtB});
assert.equal('one week ago', res);

dtB = date.add(dtB, 'millisecond', 1);
res = date.relativeTime(dtA, {now: dtB});
assert.equal('about 2 weeks ago', res);
}

};

module.exports = tests;

0 comments on commit 32a09e0

Please sign in to comment.