aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/fixtures
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/fixtures')
-rw-r--r--server/tests/fixtures/peertube-plugin-test/main.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/server/tests/fixtures/peertube-plugin-test/main.js b/server/tests/fixtures/peertube-plugin-test/main.js
index e5a9f8df5..305d92002 100644
--- a/server/tests/fixtures/peertube-plugin-test/main.js
+++ b/server/tests/fixtures/peertube-plugin-test/main.js
@@ -60,6 +60,16 @@ async function register ({ registerHook, registerSetting, settingsManager, stora
60 }) 60 })
61 61
62 registerHook({ 62 registerHook({
63 target: 'filter:api.user.me.videos.list.params',
64 handler: obj => addToCount(obj, 4)
65 })
66
67 registerHook({
68 target: 'filter:api.user.me.videos.list.result',
69 handler: obj => addToTotal(obj, 4)
70 })
71
72 registerHook({
63 target: 'filter:api.video.get.result', 73 target: 'filter:api.video.get.result',
64 handler: video => { 74 handler: video => {
65 video.name += ' <3' 75 video.name += ' <3'