Browse Source

fix(unit test): trying to fix failing unit test due to timezone different on build server

Torkel Ödegaard 10 years ago
parent
commit
9904d01958
1 changed files with 2 additions and 2 deletions
  1. 2 2
      public/test/specs/elasticsearch-indexPattern-specs.js

+ 2 - 2
public/test/specs/elasticsearch-indexPattern-specs.js

@@ -30,8 +30,8 @@ define([
 
 
         it('should return correct index list', function() {
         it('should return correct index list', function() {
           var pattern = new IndexPattern('[asd-]YYYY.MM.DD', 'Daily');
           var pattern = new IndexPattern('[asd-]YYYY.MM.DD', 'Daily');
-          var from = new Date(2015, 4, 30, 1, 2, 3);
-          var to = new Date(2015, 5, 1, 12, 5 , 6);
+          var from = new Date(1432940523000);
+          var to = new Date(1433153106000);
 
 
           var expected =  [
           var expected =  [
             'asd-2015.05.29',
             'asd-2015.05.29',