aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/fixtures
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-07-13 11:26:00 +0200
committerChocobozzz <me@florianbigard.com>2022-07-13 11:26:00 +0200
commitda5f46487f85de89d9a20031e2bdbae1dbee2e26 (patch)
tree49391d239352d2389cd710c3eb4e2793717496bc /server/tests/fixtures
parentf7ce623db1225b7b6f8383c33cab9515b36907fe (diff)
downloadPeerTube-da5f46487f85de89d9a20031e2bdbae1dbee2e26.tar.gz
PeerTube-da5f46487f85de89d9a20031e2bdbae1dbee2e26.tar.zst
PeerTube-da5f46487f85de89d9a20031e2bdbae1dbee2e26.zip
Fix plugin filter test
Diffstat (limited to 'server/tests/fixtures')
-rw-r--r--server/tests/fixtures/peertube-plugin-test/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/tests/fixtures/peertube-plugin-test/main.js b/server/tests/fixtures/peertube-plugin-test/main.js
index 7715ab6e8..2f3809215 100644
--- a/server/tests/fixtures/peertube-plugin-test/main.js
+++ b/server/tests/fixtures/peertube-plugin-test/main.js
@@ -192,7 +192,7 @@ async function register ({ registerHook, registerSetting, settingsManager, stora
192 registerHook({ 192 registerHook({
193 target: 'filter:api.user.signup.allowed.result', 193 target: 'filter:api.user.signup.allowed.result',
194 handler: (result, params) => { 194 handler: (result, params) => {
195 if (params && params.body.email.includes('jma')) { 195 if (params && params.body && params.body.email && params.body.email.includes('jma')) {
196 return { allowed: false, errorMessage: 'No jma' } 196 return { allowed: false, errorMessage: 'No jma' }
197 } 197 }
198 198