Tobias Skarhed hace 7 años
padre
commit
2db4a54f75
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      public/app/plugins/panel/singlestat/specs/singlestat.jest.ts

+ 1 - 1
public/app/plugins/panel/singlestat/specs/singlestat.jest.ts

@@ -87,7 +87,7 @@ describe('SingleStatCtrl', function() {
     });
 
     it('should set formatted value', function() {
-      expect(moment(ctx.data.valueFormatted).isSame('2017-09-17 09:56:37')).toBe(true);
+      expect(moment(ctx.data.valueFormatted).valueOf()).toBe(1505634997000);
     });
   });