From d4c9f45b31eda0b7a391ddc83eb290ca5cba311f Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 6 Mar 2019 11:32:53 +0100 Subject: Add server migrations --- server/tests/api/videos/video-playlists.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'server/tests/api/videos/video-playlists.ts') 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 { getPlaylistVideos, getVideoChannelPlaylistsList, getVideoPlaylist, + getVideoPlaylistPrivacies, getVideoPlaylistsList, getVideoPlaylistWithToken, killallServers, @@ -95,6 +96,15 @@ describe('Test video playlists', function () { await waitJobs(servers) }) + it('Should list video playlist privacies', async function () { + const res = await getVideoPlaylistPrivacies(servers[0].url) + + const privacies = res.body + expect(Object.keys(privacies)).to.have.length.at.least(3) + + expect(privacies[3]).to.equal('Private') + }) + it('Should list watch later playlist', async function () { const url = servers[ 0 ].url const accessToken = servers[ 0 ].accessToken -- cgit v1.2.3