From a18f275d302bbd95443c258b8d92f6dfd8eb1653 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 26 Apr 2019 10:20:58 +0200 Subject: Fix thumbnail when listing my videos --- server/tests/api/users/users.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'server/tests/api') 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 @@ import * as chai from 'chai' import 'mocha' -import { User, UserRole } from '../../../../shared/index' +import { User, UserRole, Video } from '../../../../shared/index' import { blockUser, cleanupTests, @@ -290,7 +290,10 @@ describe('Test users', function () { const videos = res.body.data expect(videos).to.have.lengthOf(1) - expect(videos[ 0 ].name).to.equal('super user video') + const video: Video = videos[ 0 ] + expect(video.name).to.equal('super user video') + expect(video.thumbnailPath).to.not.be.null + expect(video.previewPath).to.not.be.null }) }) -- cgit v1.2.3