diff options
Diffstat (limited to 'server/tests/api/check-params/video-playlists.ts')
-rw-r--r-- | server/tests/api/check-params/video-playlists.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/server/tests/api/check-params/video-playlists.ts b/server/tests/api/check-params/video-playlists.ts index 418af05d1..bbea88354 100644 --- a/server/tests/api/check-params/video-playlists.ts +++ b/server/tests/api/check-params/video-playlists.ts | |||
@@ -251,7 +251,14 @@ describe('Test video playlists API validator', function () { | |||
251 | }) | 251 | }) |
252 | 252 | ||
253 | it('Should fail with an incorrect thumbnail file', async function () { | 253 | it('Should fail with an incorrect thumbnail file', async function () { |
254 | const params = getBase({ thumbnailfile: 'avatar.png' }) | 254 | const params = getBase({ thumbnailfile: 'video_short.mp4' }) |
255 | |||
256 | await createVideoPlaylist(params) | ||
257 | await updateVideoPlaylist(getUpdate(params, playlistUUID)) | ||
258 | }) | ||
259 | |||
260 | it('Should fail with a thumbnail file too big', async function () { | ||
261 | const params = getBase({ thumbnailfile: 'preview-big.png' }) | ||
255 | 262 | ||
256 | await createVideoPlaylist(params) | 263 | await createVideoPlaylist(params) |
257 | await updateVideoPlaylist(getUpdate(params, playlistUUID)) | 264 | await updateVideoPlaylist(getUpdate(params, playlistUUID)) |