]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/check-params/video-channels.ts
Improve check jobs parameters tests
[github/Chocobozzz/PeerTube.git] / server / tests / api / check-params / video-channels.ts
index e72b2cb6c20ec24a65c9f1ba22f7cc09fa823e48..bf464152b2c424a962d63ff1fe30082b39caf7d4 100644 (file)
@@ -15,7 +15,7 @@ import {
   makePostBodyRequest,
   getVideoChannelsList,
   createUser,
-  getUserAccessToken
+  userLogin
 } from '../../utils'
 
 describe('Test videos API validator', function () {
@@ -40,7 +40,7 @@ describe('Test videos API validator', function () {
     }
     await createUser(server.url, server.accessToken, user.username, user.password)
 
-    accessTokenUser = await getUserAccessToken(server, user)
+    accessTokenUser = await userLogin(server, user)
   })
 
   describe('When listing a video channels', function () {
@@ -69,9 +69,9 @@ describe('Test videos API validator', function () {
     })
   })
 
-  describe('When listing author video channels', function () {
-    it('Should fail with bad author', async function () {
-      const path = '/api/v1/videos/authors/hello/channels'
+  describe('When listing account video channels', function () {
+    it('Should fail with bad account', async function () {
+      const path = '/api/v1/videos/accounts/hello/channels'
 
       await request(server.url)
         .get(path)
@@ -79,8 +79,8 @@ describe('Test videos API validator', function () {
         .expect(400)
     })
 
-    it('Should fail with a unknown author', async function () {
-      const path = '/api/v1/videos/authors/156/channels'
+    it('Should fail with a unknown account', async function () {
+      const path = '/api/v1/videos/accounts/156/channels'
 
       await request(server.url)
         .get(path)