aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests')
-rw-r--r--server/tests/api/check-params/video-channels.ts10
1 files changed, 10 insertions, 0 deletions
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 () {
136 statusCodeExpected: 200 136 statusCodeExpected: 200
137 }) 137 })
138 }) 138 })
139
140 it('Should fail when adding a channel with the same username', async function () {
141 await makePostBodyRequest({
142 url: server.url,
143 path: videoChannelPath,
144 token: server.accessToken,
145 fields: baseCorrectParams,
146 statusCodeExpected: 409
147 })
148 })
139 }) 149 })
140 150
141 describe('When updating a video channel', function () { 151 describe('When updating a video channel', function () {