diff options
author | Chocobozzz <me@florianbigard.com> | 2021-07-13 14:23:01 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-07-20 15:27:18 +0200 |
commit | 7926c5f9b3ffcabb1ffb0dcfa5e48b8e0b88fbc0 (patch) | |
tree | 7a166515e4d57a06eb3c08be569f106ed049988b /server/tests/api/check-params/video-playlists.ts | |
parent | d0a0fa429d4651710ed951a3c11af0219e408964 (diff) | |
download | PeerTube-7926c5f9b3ffcabb1ffb0dcfa5e48b8e0b88fbc0.tar.gz PeerTube-7926c5f9b3ffcabb1ffb0dcfa5e48b8e0b88fbc0.tar.zst PeerTube-7926c5f9b3ffcabb1ffb0dcfa5e48b8e0b88fbc0.zip |
Introduce user command
Diffstat (limited to 'server/tests/api/check-params/video-playlists.ts')
-rw-r--r-- | server/tests/api/check-params/video-playlists.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/tests/api/check-params/video-playlists.ts b/server/tests/api/check-params/video-playlists.ts index 3799e73b6..46c09bb11 100644 --- a/server/tests/api/check-params/video-playlists.ts +++ b/server/tests/api/check-params/video-playlists.ts | |||
@@ -17,7 +17,6 @@ import { | |||
17 | checkBadStartPagination, | 17 | checkBadStartPagination, |
18 | cleanupTests, | 18 | cleanupTests, |
19 | flushAndRunServer, | 19 | flushAndRunServer, |
20 | generateUserAccessToken, | ||
21 | makeGetRequest, | 20 | makeGetRequest, |
22 | PlaylistsCommand, | 21 | PlaylistsCommand, |
23 | ServerInfo, | 22 | ServerInfo, |
@@ -49,7 +48,7 @@ describe('Test video playlists API validator', function () { | |||
49 | await setAccessTokensToServers([ server ]) | 48 | await setAccessTokensToServers([ server ]) |
50 | await setDefaultVideoChannel([ server ]) | 49 | await setDefaultVideoChannel([ server ]) |
51 | 50 | ||
52 | userAccessToken = await generateUserAccessToken(server, 'user1') | 51 | userAccessToken = await server.usersCommand.generateUserAndToken('user1') |
53 | videoId = (await uploadVideoAndGetId({ server, videoName: 'video 1' })).id | 52 | videoId = (await uploadVideoAndGetId({ server, videoName: 'video 1' })).id |
54 | 53 | ||
55 | command = server.playlistsCommand | 54 | command = server.playlistsCommand |