Commit ed76d718 by Harald Kraemer

Fixed setTime should disable refresh test

 - init with dashboard mock
parent 00e1a1c4
...@@ -63,6 +63,7 @@ define([ ...@@ -63,6 +63,7 @@ define([
describe('setTime', function() { describe('setTime', function() {
it('should return disable refresh for absolute times', function() { it('should return disable refresh for absolute times', function() {
_filterSrv.init( _dashboard );
_dashboard.current.refresh = true; _dashboard.current.refresh = true;
_filterSrv.setTime({from: '2011-01-01', to: '2015-01-01' }); _filterSrv.setTime({from: '2011-01-01', to: '2015-01-01' });
......
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