X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fcheck-params%2Fvideo-channels.ts;h=3a7942945a107c4571f0642773c6189a285e431b;hb=601527d7953a83d6ad08dbb2ed8ac02851beaf1e;hp=bcf4b7473e319857d1d0be42f752e1a47063c1b6;hpb=7361c401b17415931f25f3a2137ba22a06a6a4ed;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/check-params/video-channels.ts b/server/tests/api/check-params/video-channels.ts index bcf4b7473..3a7942945 100644 --- a/server/tests/api/check-params/video-channels.ts +++ b/server/tests/api/check-params/video-channels.ts @@ -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 () {