aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/users
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-04-26 10:20:58 +0200
committerChocobozzz <me@florianbigard.com>2019-05-13 09:45:36 +0200
commita18f275d302bbd95443c258b8d92f6dfd8eb1653 (patch)
tree2cf4362ce6fd8580eca070c5ca74f33e1356a0c9 /server/tests/api/users
parentc342726ad4ccbb90b8ff29f1cc1c89f9f7e8d98f (diff)
downloadPeerTube-a18f275d302bbd95443c258b8d92f6dfd8eb1653.tar.gz
PeerTube-a18f275d302bbd95443c258b8d92f6dfd8eb1653.tar.zst
PeerTube-a18f275d302bbd95443c258b8d92f6dfd8eb1653.zip
Fix thumbnail when listing my videos
Diffstat (limited to 'server/tests/api/users')
-rw-r--r--server/tests/api/users/users.ts7
1 files changed, 5 insertions, 2 deletions
diff --git a/server/tests/api/users/users.ts b/server/tests/api/users/users.ts
index e7291740b..c8e32f3f5 100644
--- a/server/tests/api/users/users.ts
+++ b/server/tests/api/users/users.ts
@@ -2,7 +2,7 @@
2 2
3import * as chai from 'chai' 3import * as chai from 'chai'
4import 'mocha' 4import 'mocha'
5import { User, UserRole } from '../../../../shared/index' 5import { User, UserRole, Video } from '../../../../shared/index'
6import { 6import {
7 blockUser, 7 blockUser,
8 cleanupTests, 8 cleanupTests,
@@ -290,7 +290,10 @@ describe('Test users', function () {
290 const videos = res.body.data 290 const videos = res.body.data
291 expect(videos).to.have.lengthOf(1) 291 expect(videos).to.have.lengthOf(1)
292 292
293 expect(videos[ 0 ].name).to.equal('super user video') 293 const video: Video = videos[ 0 ]
294 expect(video.name).to.equal('super user video')
295 expect(video.thumbnailPath).to.not.be.null
296 expect(video.previewPath).to.not.be.null
294 }) 297 })
295 }) 298 })
296 299