aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/external-plugins
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-12-07 14:32:36 +0100
committerGitHub <noreply@github.com>2020-12-07 14:32:36 +0100
commit2d53be0267acc49cda46707b885096193a1f4e9c (patch)
tree887061a34bc67f40acbb96a6278f9544bf83caeb /server/tests/external-plugins
parentadc1f09c0dbd997f34028c1c82d1c118dc8ead80 (diff)
downloadPeerTube-2d53be0267acc49cda46707b885096193a1f4e9c.tar.gz
PeerTube-2d53be0267acc49cda46707b885096193a1f4e9c.tar.zst
PeerTube-2d53be0267acc49cda46707b885096193a1f4e9c.zip
replace numbers with typed http status codes (#3409)
Diffstat (limited to 'server/tests/external-plugins')
-rw-r--r--server/tests/external-plugins/auto-mute.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/tests/external-plugins/auto-mute.ts b/server/tests/external-plugins/auto-mute.ts
index 8ead34a2b..687f56e98 100644
--- a/server/tests/external-plugins/auto-mute.ts
+++ b/server/tests/external-plugins/auto-mute.ts
@@ -25,6 +25,7 @@ import {
25 reRunServer, 25 reRunServer,
26 ServerInfo 26 ServerInfo
27} from '../../../shared/extra-utils/server/servers' 27} from '../../../shared/extra-utils/server/servers'
28import { HttpStatusCode } from '../../../shared/core-utils/miscs/http-error-codes'
28 29
29describe('Official plugin auto-mute', function () { 30describe('Official plugin auto-mute', function () {
30 const autoMuteListPath = '/plugins/auto-mute/router/api/v1/mute-list' 31 const autoMuteListPath = '/plugins/auto-mute/router/api/v1/mute-list'
@@ -178,7 +179,7 @@ describe('Official plugin auto-mute', function () {
178 await makeGetRequest({ 179 await makeGetRequest({
179 url: servers[0].url, 180 url: servers[0].url,
180 path: '/plugins/auto-mute/router/api/v1/mute-list', 181 path: '/plugins/auto-mute/router/api/v1/mute-list',
181 statusCodeExpected: 403 182 statusCodeExpected: HttpStatusCode.FORBIDDEN_403
182 }) 183 })
183 }) 184 })
184 185
@@ -197,7 +198,7 @@ describe('Official plugin auto-mute', function () {
197 await makeGetRequest({ 198 await makeGetRequest({
198 url: servers[0].url, 199 url: servers[0].url,
199 path: '/plugins/auto-mute/router/api/v1/mute-list', 200 path: '/plugins/auto-mute/router/api/v1/mute-list',
200 statusCodeExpected: 200 201 statusCodeExpected: HttpStatusCode.OK_200
201 }) 202 })
202 }) 203 })
203 204
@@ -221,7 +222,7 @@ describe('Official plugin auto-mute', function () {
221 const res = await makeGetRequest({ 222 const res = await makeGetRequest({
222 url: servers[0].url, 223 url: servers[0].url,
223 path: '/plugins/auto-mute/router/api/v1/mute-list', 224 path: '/plugins/auto-mute/router/api/v1/mute-list',
224 statusCodeExpected: 200 225 statusCodeExpected: HttpStatusCode.OK_200
225 }) 226 })
226 227
227 const data = res.body.data 228 const data = res.body.data