aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/external-plugins
diff options
context:
space:
mode:
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