]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/check-params/video-channels.ts
Check video channel name is unique on our instance
[github/Chocobozzz/PeerTube.git] / server / tests / api / check-params / video-channels.ts
index bcf4b7473e319857d1d0be42f752e1a47063c1b6..3a7942945a107c4571f0642773c6189a285e431b 100644 (file)
@@ -136,6 +136,16 @@ describe('Test video channels API validator', function () {
         statusCodeExpected: 200
       })
     })
+
+    it('Should fail when adding a channel with the same username', async function () {
+      await makePostBodyRequest({
+        url: server.url,
+        path: videoChannelPath,
+        token: server.accessToken,
+        fields: baseCorrectParams,
+        statusCodeExpected: 409
+      })
+    })
   })
 
   describe('When updating a video channel', function () {