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-channels.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-channels.ts')
-rw-r--r-- | server/tests/api/check-params/video-channels.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/tests/api/check-params/video-channels.ts b/server/tests/api/check-params/video-channels.ts index 5361f6917..2b4c17ea1 100644 --- a/server/tests/api/check-params/video-channels.ts +++ b/server/tests/api/check-params/video-channels.ts | |||
@@ -11,7 +11,6 @@ import { | |||
11 | checkBadSortPagination, | 11 | checkBadSortPagination, |
12 | checkBadStartPagination, | 12 | checkBadStartPagination, |
13 | cleanupTests, | 13 | cleanupTests, |
14 | createUser, | ||
15 | flushAndRunServer, | 14 | flushAndRunServer, |
16 | makeGetRequest, | 15 | makeGetRequest, |
17 | makePostBodyRequest, | 16 | makePostBodyRequest, |
@@ -45,7 +44,7 @@ describe('Test video channels API validator', function () { | |||
45 | } | 44 | } |
46 | 45 | ||
47 | { | 46 | { |
48 | await createUser({ url: server.url, accessToken: server.accessToken, username: user.username, password: user.password }) | 47 | await server.usersCommand.create({ username: user.username, password: user.password }) |
49 | accessTokenUser = await server.loginCommand.getAccessToken(user) | 48 | accessTokenUser = await server.loginCommand.getAccessToken(user) |
50 | } | 49 | } |
51 | 50 | ||