]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/check-params/video-playlists.ts
Cleanup
[github/Chocobozzz/PeerTube.git] / server / tests / api / check-params / video-playlists.ts
index 418af05d179be019ab97b32c45f557ea54f9b1c7..bbea88354cca0d9baa0204ba3a2ee8c9cc38049b 100644 (file)
@@ -251,7 +251,14 @@ describe('Test video playlists API validator', function () {
     })
 
     it('Should fail with an incorrect thumbnail file', async function () {
-      const params = getBase({ thumbnailfile: 'avatar.png' })
+      const params = getBase({ thumbnailfile: 'video_short.mp4' })
+
+      await createVideoPlaylist(params)
+      await updateVideoPlaylist(getUpdate(params, playlistUUID))
+    })
+
+    it('Should fail with a thumbnail file too big', async function () {
+      const params = getBase({ thumbnailfile: 'preview-big.png' })
 
       await createVideoPlaylist(params)
       await updateVideoPlaylist(getUpdate(params, playlistUUID))