aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-12-27 09:04:04 +0100
committerChocobozzz <me@florianbigard.com>2019-12-27 09:04:04 +0100
commit822c7e610d19e3320519a6ae5c90c01db971f03f (patch)
tree7e9afe855cab8b09708e3fe71caf37bc4e8dc19f /server/tests
parent227eb02f9ac100e1314cab4c4751e450bbe14d21 (diff)
downloadPeerTube-822c7e610d19e3320519a6ae5c90c01db971f03f.tar.gz
PeerTube-822c7e610d19e3320519a6ae5c90c01db971f03f.tar.zst
PeerTube-822c7e610d19e3320519a6ae5c90c01db971f03f.zip
Fix playlist search
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/api/videos/video-playlists.ts19
1 files changed, 19 insertions, 0 deletions
diff --git a/server/tests/api/videos/video-playlists.ts b/server/tests/api/videos/video-playlists.ts
index 424b217fb..9fd48ac7c 100644
--- a/server/tests/api/videos/video-playlists.ts
+++ b/server/tests/api/videos/video-playlists.ts
@@ -407,6 +407,25 @@ describe('Test video playlists', function () {
407 expect(data).to.have.lengthOf(1) 407 expect(data).to.have.lengthOf(1)
408 expect(data[ 0 ].displayName).to.equal('playlist 3') 408 expect(data[ 0 ].displayName).to.equal('playlist 3')
409 } 409 }
410
411 {
412 const res = await getAccountPlaylistsList(servers[ 1 ].url, 'root', 0, 10, 'createdAt', '3')
413
414 expect(res.body.total).to.equal(1)
415
416 const data: VideoPlaylist[] = res.body.data
417 expect(data).to.have.lengthOf(1)
418 expect(data[ 0 ].displayName).to.equal('playlist 3')
419 }
420
421 {
422 const res = await getAccountPlaylistsList(servers[ 1 ].url, 'root', 0, 10, 'createdAt', '4')
423
424 expect(res.body.total).to.equal(0)
425
426 const data: VideoPlaylist[] = res.body.data
427 expect(data).to.have.lengthOf(0)
428 }
410 }) 429 })
411 430
412 it('Should not list unlisted or private playlists', async function () { 431 it('Should not list unlisted or private playlists', async function () {