Browse Source

fix(test): fixed failing unsaved changes test

Torkel Ödegaard 9 years ago
parent
commit
1bb4ca22e7
2 changed files with 2 additions and 1 deletions
  1. 1 1
      public/app/core/utils/datemath.ts
  2. 1 0
      public/test/specs/unsavedChangesSrv-specs.js

+ 1 - 1
public/app/core/utils/datemath.ts

@@ -28,7 +28,7 @@ export function parse(text, roundUp?) {
       mathString = text.substring(index + 2);
     }
     // We're going to just require ISO8601 timestamps, k?
-    time = moment(parseString);
+    time = moment(parseString, moment.ISO_8601);
   }
 
   if (!mathString.length) {

+ 1 - 0
public/test/specs/unsavedChangesSrv-specs.js

@@ -29,6 +29,7 @@ define([
 
     beforeEach(function() {
       dash = _dashboardSrv.create({
+        refresh: false,
         rows: [
           {
             panels: [{ test: "asd", legend: { } }]