Explorar el Código

fixed failing unit test

Torkel Ödegaard hace 10 años
padre
commit
3435aaea45
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      public/test/specs/timeSrv-specs.js

+ 1 - 1
public/test/specs/timeSrv-specs.js

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