mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Add test for 1M
This commit is contained in:
parent
91f9c5c421
commit
b7750c5776
1 changed files with 6 additions and 0 deletions
|
@ -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'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue