mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fixed timerange parsed = true test
- had to call init with dashboard mock
This commit is contained in:
parent
f2b9ea1034
commit
00e1a1c442
@ -53,6 +53,7 @@ define([
|
||||
});
|
||||
|
||||
it('should return parsed when parse is true', function() {
|
||||
_filterSrv.init( _dashboard );
|
||||
_filterSrv.setTime({from: 'now', to: 'now-1h' });
|
||||
var time = _filterSrv.timeRange(true);
|
||||
expect(_.isDate(time.from)).to.be(true);
|
||||
|
Loading…
Reference in New Issue
Block a user