aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/plugins')
-rw-r--r--server/tests/plugins/filter-hooks.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/tests/plugins/filter-hooks.ts b/server/tests/plugins/filter-hooks.ts
index 6bd38cf65..a7e052d06 100644
--- a/server/tests/plugins/filter-hooks.ts
+++ b/server/tests/plugins/filter-hooks.ts
@@ -155,14 +155,14 @@ describe('Test plugin filter hooks', function () {
155 }) 155 })
156 156
157 it('Should run filter:api.user.me.subscription-videos.list.params', async function () { 157 it('Should run filter:api.user.me.subscription-videos.list.params', async function () {
158 const { data } = await servers[0].subscriptions.listVideos() 158 const { data } = await servers[0].videos.listMySubscriptionVideos({ start: 0, count: 2 })
159 159
160 // 1 plugin set the count parameter to 1 160 // 1 plugin do +1 to the count parameter
161 expect(data).to.have.lengthOf(1) 161 expect(data).to.have.lengthOf(3)
162 }) 162 })
163 163
164 it('Should run filter:api.user.me.subscription-videos.list.result', async function () { 164 it('Should run filter:api.user.me.subscription-videos.list.result', async function () {
165 const { total } = await servers[0].subscriptions.listVideos() 165 const { total } = await servers[0].videos.listMySubscriptionVideos({ start: 0, count: 2 })
166 166
167 // Plugin do +4 to the total result 167 // Plugin do +4 to the total result
168 expect(total).to.equal(14) 168 expect(total).to.equal(14)