- 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 command.create(params)
+ await command.update(getUpdate(params, playlist.shortUUID))
+ })
+
+ it('Should fail to set "public" a playlist not assigned to a channel', async function () {
+ const params = getBase({ privacy: VideoPlaylistPrivacy.PUBLIC, videoChannelId: undefined })
+ const params2 = getBase({ privacy: VideoPlaylistPrivacy.PUBLIC, videoChannelId: 'null' as any })
+ const params3 = getBase({ privacy: undefined, videoChannelId: 'null' as any })
+
+ await command.create(params)
+ await command.create(params2)
+ await command.update(getUpdate(params, privatePlaylistUUID))
+ await command.update(getUpdate(params2, playlist.shortUUID))
+ await command.update(getUpdate(params3, playlist.shortUUID))