Skip to content

Commit

Permalink
Add test for 1M
Browse files Browse the repository at this point in the history
  • Loading branch information
Rashid Khan committed Apr 21, 2014
1 parent 216d59c commit ce23f98
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/unit/specs/utils/interval.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ define(function (require) {
expect(interval.calculate(_t, now, 100).interval).to.be(interval.toMS('1w'));
});

it('should calculate an appropriate interval for 25y', function () {
var _t = then.subtract(25, 'years');
expect(interval.calculate(_t, now, 100).interval).to.be(interval.toMS('1M'));
});


it('should calculate an appropriate interval for a 100y', function () {
var _t = then.subtract(100, 'years');
expect(interval.calculate(_t, now, 100).interval).to.be(interval.toMS('1y'));
Expand Down

0 comments on commit ce23f98

Please sign in to comment.