From 601527d7953a83d6ad08dbb2ed8ac02851beaf1e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 1 Oct 2018 15:18:07 +0200 Subject: Check video channel name is unique on our instance --- server/tests/api/check-params/video-channels.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'server/tests/api') 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 () { -- cgit v1.2.3