diff options
author | Chocobozzz <me@florianbigard.com> | 2019-03-06 11:32:53 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-03-18 11:17:59 +0100 |
commit | d4c9f45b31eda0b7a391ddc83eb290ca5cba311f (patch) | |
tree | 657a47aafc71f67d86718d2de8d4c0f878367331 /server/tests/api/videos | |
parent | 9c6ca37fc1512a99d420ea90707cebcd06cdc970 (diff) | |
download | PeerTube-d4c9f45b31eda0b7a391ddc83eb290ca5cba311f.tar.gz PeerTube-d4c9f45b31eda0b7a391ddc83eb290ca5cba311f.tar.zst PeerTube-d4c9f45b31eda0b7a391ddc83eb290ca5cba311f.zip |
Add server migrations
Diffstat (limited to 'server/tests/api/videos')
-rw-r--r-- | server/tests/api/videos/video-playlists.ts | 10 |
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 |