From 17036be5bc2f14dc4e66053087e39887599df4de Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 15 Feb 2019 14:04:34 +0100 Subject: [PATCH] Try to fix travis tests --- server/tests/api/videos/video-imports.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/tests/api/videos/video-imports.ts b/server/tests/api/videos/video-imports.ts index b04c0b826..c5ffb793b 100644 --- a/server/tests/api/videos/video-imports.ts +++ b/server/tests/api/videos/video-imports.ts @@ -37,7 +37,11 @@ describe('Test video imports', function () { expect(videoHttp.description).to.equal('this is a super description') expect(videoHttp.tags).to.deep.equal([ 'tag1', 'tag2' ]) expect(videoHttp.files).to.have.lengthOf(1) - expect(videoHttp.originallyPublishedAt).to.equal('2019-01-13T23:00:00.000Z') + + const originallyPublishedAt = new Date(videoHttp.originallyPublishedAt) + expect(originallyPublishedAt.getDate()).to.equal(14) + expect(originallyPublishedAt.getMonth()).to.equal(0) + expect(originallyPublishedAt.getFullYear()).to.equal(2019) const resMagnet = await getVideo(url, idMagnet) const videoMagnet: VideoDetails = resMagnet.body