From 1fabda0156e135fb52ab327e6b047dda4f8695ef Mon Sep 17 00:00:00 2001
From: deniz kusefoglu <denizk@gmail.com>
Date: Thu, 26 Oct 2017 14:35:03 -0700
Subject: [PATCH] Fix tests

---
 ui/spec/shared/parsing/resultsToCSVSpec.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ui/spec/shared/parsing/resultsToCSVSpec.js b/ui/spec/shared/parsing/resultsToCSVSpec.js
index 6945e713db..aa8199566a 100644
--- a/ui/spec/shared/parsing/resultsToCSVSpec.js
+++ b/ui/spec/shared/parsing/resultsToCSVSpec.js
@@ -3,13 +3,16 @@ import {
   formatDate,
   dashboardtoCSV,
 } from 'shared/parsing/resultsToCSV'
+import moment from 'moment'
 
 describe('formatDate', () => {
   it('converts timestamp to an excel compatible date string', () => {
     const timestamp = 1000000000000
     const result = formatDate(timestamp)
     expect(result).to.be.a('string')
-    expect(+new Date(result)).to.equal(timestamp)
+    expect(moment(result, 'M/D/YYYY h:mm:ss.SSSSSSSSS A').valueOf()).to.equal(
+      timestamp
+    )
   })
 })