aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/check-params
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-03-14 15:29:23 +0100
committerChocobozzz <chocobozzz@cpy.re>2019-03-18 11:17:59 +0100
commit397d78fb3e55aeeedf3591d7be9d7a30849d9e82 (patch)
tree8ddfd01fa8ab3a1a12ce400d675ab55eb4d8e39e /server/tests/api/check-params
parent978c9d497b36e52196eb7e755406571e5d57cbc7 (diff)
downloadPeerTube-397d78fb3e55aeeedf3591d7be9d7a30849d9e82.tar.gz
PeerTube-397d78fb3e55aeeedf3591d7be9d7a30849d9e82.tar.zst
PeerTube-397d78fb3e55aeeedf3591d7be9d7a30849d9e82.zip
Fix unit tests
Diffstat (limited to 'server/tests/api/check-params')
-rw-r--r--server/tests/api/check-params/videos-filter.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/tests/api/check-params/videos-filter.ts b/server/tests/api/check-params/videos-filter.ts
index cc2f35069..d5557cd07 100644
--- a/server/tests/api/check-params/videos-filter.ts
+++ b/server/tests/api/check-params/videos-filter.ts
@@ -9,7 +9,7 @@ import {
9 makeGetRequest, 9 makeGetRequest,
10 runServer, 10 runServer,
11 ServerInfo, 11 ServerInfo,
12 setAccessTokensToServers, 12 setAccessTokensToServers, setDefaultVideoChannel,
13 userLogin 13 userLogin
14} from '../../../../shared/utils' 14} from '../../../../shared/utils'
15import { UserRole } from '../../../../shared/models/users' 15import { UserRole } from '../../../../shared/models/users'
@@ -53,6 +53,7 @@ describe('Test videos filters', function () {
53 server = await runServer(1) 53 server = await runServer(1)
54 54
55 await setAccessTokensToServers([ server ]) 55 await setAccessTokensToServers([ server ])
56 await setDefaultVideoChannel([ server ])
56 57
57 const user = { username: 'user1', password: 'my super password' } 58 const user = { username: 'user1', password: 'my super password' }
58 await createUser(server.url, server.accessToken, user.username, user.password) 59 await createUser(server.url, server.accessToken, user.username, user.password)
@@ -75,7 +76,8 @@ describe('Test videos filters', function () {
75 token: server.accessToken, 76 token: server.accessToken,
76 playlistAttrs: { 77 playlistAttrs: {
77 displayName: 'super playlist', 78 displayName: 'super playlist',
78 privacy: VideoPlaylistPrivacy.PUBLIC 79 privacy: VideoPlaylistPrivacy.PUBLIC,
80 videoChannelId: server.videoChannel.id
79 } 81 }
80 }) 82 })
81 playlistUUID = res.body.videoPlaylist.uuid 83 playlistUUID = res.body.videoPlaylist.uuid