diff options
Diffstat (limited to 'server/tests/api/users/users.ts')
-rw-r--r-- | server/tests/api/users/users.ts | 7 |
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 | ||
3 | import * as chai from 'chai' | 3 | import * as chai from 'chai' |
4 | import 'mocha' | 4 | import 'mocha' |
5 | import { User, UserRole } from '../../../../shared/index' | 5 | import { User, UserRole, Video } from '../../../../shared/index' |
6 | import { | 6 | import { |
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 | ||