aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-02-15 14:04:34 +0100
committerChocobozzz <me@florianbigard.com>2019-02-15 14:04:34 +0100
commit17036be5bc2f14dc4e66053087e39887599df4de (patch)
tree2159c78f8000d56120e3a0cd765555b2b26305ce /server/tests
parentcd1a48898154809b070953a6d686afeff1bc65b5 (diff)
downloadPeerTube-17036be5bc2f14dc4e66053087e39887599df4de.tar.gz
PeerTube-17036be5bc2f14dc4e66053087e39887599df4de.tar.zst
PeerTube-17036be5bc2f14dc4e66053087e39887599df4de.zip
Try to fix travis tests
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/api/videos/video-imports.ts6
1 files changed, 5 insertions, 1 deletions
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 () {
37 expect(videoHttp.description).to.equal('this is a super description') 37 expect(videoHttp.description).to.equal('this is a super description')
38 expect(videoHttp.tags).to.deep.equal([ 'tag1', 'tag2' ]) 38 expect(videoHttp.tags).to.deep.equal([ 'tag1', 'tag2' ])
39 expect(videoHttp.files).to.have.lengthOf(1) 39 expect(videoHttp.files).to.have.lengthOf(1)
40 expect(videoHttp.originallyPublishedAt).to.equal('2019-01-13T23:00:00.000Z') 40
41 const originallyPublishedAt = new Date(videoHttp.originallyPublishedAt)
42 expect(originallyPublishedAt.getDate()).to.equal(14)
43 expect(originallyPublishedAt.getMonth()).to.equal(0)
44 expect(originallyPublishedAt.getFullYear()).to.equal(2019)
41 45
42 const resMagnet = await getVideo(url, idMagnet) 46 const resMagnet = await getVideo(url, idMagnet)
43 const videoMagnet: VideoDetails = resMagnet.body 47 const videoMagnet: VideoDetails = resMagnet.body