From 9904d0195862fbfaca8eeefc7a24351ac7e896ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 8 Sep 2015 09:50:50 +0200 Subject: [PATCH] fix(unit test): trying to fix failing unit test due to timezone different on build server --- public/test/specs/elasticsearch-indexPattern-specs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/test/specs/elasticsearch-indexPattern-specs.js b/public/test/specs/elasticsearch-indexPattern-specs.js index 1a52aca931b..383a4ae5ea6 100644 --- a/public/test/specs/elasticsearch-indexPattern-specs.js +++ b/public/test/specs/elasticsearch-indexPattern-specs.js @@ -30,8 +30,8 @@ define([ it('should return correct index list', function() { 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 = [ 'asd-2015.05.29',