Commit 00e1a1c4 by Harald Kraemer

Fixed timerange parsed = true test

 - had to call init with dashboard mock
parent f2b9ea10
...@@ -53,6 +53,7 @@ define([ ...@@ -53,6 +53,7 @@ define([
}); });
it('should return parsed when parse is true', function() { it('should return parsed when parse is true', function() {
_filterSrv.init( _dashboard );
_filterSrv.setTime({from: 'now', to: 'now-1h' }); _filterSrv.setTime({from: 'now', to: 'now-1h' });
var time = _filterSrv.timeRange(true); var time = _filterSrv.timeRange(true);
expect(_.isDate(time.from)).to.be(true); expect(_.isDate(time.from)).to.be(true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment