Skip to content

Commit 3435aae

Browse files
committed
fixed failing unit test
1 parent 9fc91b7 commit 3435aae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/test/specs/timeSrv-specs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ define([
8686

8787
it('should restore refresh after relative time range is set', function() {
8888
_dashboard.refresh = '10s';
89-
ctx.service.setTime({from: '2011-01-01', to: '2015-01-01' });
89+
ctx.service.setTime({from: moment([2011,1,1]), to: moment([2015,1,1])});
9090
expect(_dashboard.refresh).to.be(false);
9191
ctx.service.setTime({from: '2011-01-01', to: 'now' });
9292
expect(_dashboard.refresh).to.be('10s');

0 commit comments

Comments
 (0)