aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/videos
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/videos')
-rw-r--r--server/tests/api/videos/video-playlists.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/server/tests/api/videos/video-playlists.ts b/server/tests/api/videos/video-playlists.ts
index 7dd1563fc..baa2b3b8c 100644
--- a/server/tests/api/videos/video-playlists.ts
+++ b/server/tests/api/videos/video-playlists.ts
@@ -18,6 +18,7 @@ import {
18 getPlaylistVideos, 18 getPlaylistVideos,
19 getVideoChannelPlaylistsList, 19 getVideoChannelPlaylistsList,
20 getVideoPlaylist, 20 getVideoPlaylist,
21 getVideoPlaylistPrivacies,
21 getVideoPlaylistsList, 22 getVideoPlaylistsList,
22 getVideoPlaylistWithToken, 23 getVideoPlaylistWithToken,
23 killallServers, 24 killallServers,
@@ -95,6 +96,15 @@ describe('Test video playlists', function () {
95 await waitJobs(servers) 96 await waitJobs(servers)
96 }) 97 })
97 98
99 it('Should list video playlist privacies', async function () {
100 const res = await getVideoPlaylistPrivacies(servers[0].url)
101
102 const privacies = res.body
103 expect(Object.keys(privacies)).to.have.length.at.least(3)
104
105 expect(privacies[3]).to.equal('Private')
106 })
107
98 it('Should list watch later playlist', async function () { 108 it('Should list watch later playlist', async function () {
99 const url = servers[ 0 ].url 109 const url = servers[ 0 ].url
100 const accessToken = servers[ 0 ].accessToken 110 const accessToken = servers[ 0 ].accessToken