aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/plugins
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-07-21 16:13:20 +0200
committerChocobozzz <me@florianbigard.com>2021-07-21 16:13:20 +0200
commitd1aed103539e2e53418a44716f8f2b1603cd339f (patch)
treea4b43d0f852f362eead0224fa9d992a908c04478 /server/tests/plugins
parent64f9b91de99eb04cad12ec7370eddc30f6fda1e5 (diff)
downloadPeerTube-d1aed103539e2e53418a44716f8f2b1603cd339f.tar.gz
PeerTube-d1aed103539e2e53418a44716f8f2b1603cd339f.tar.zst
PeerTube-d1aed103539e2e53418a44716f8f2b1603cd339f.zip
Add overviews filter hook tests
Diffstat (limited to 'server/tests/plugins')
-rw-r--r--server/tests/plugins/filter-hooks.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/server/tests/plugins/filter-hooks.ts b/server/tests/plugins/filter-hooks.ts
index c00ac8f91..02915f08c 100644
--- a/server/tests/plugins/filter-hooks.ts
+++ b/server/tests/plugins/filter-hooks.ts
@@ -255,6 +255,14 @@ describe('Test plugin filter hooks', function () {
255 expect(thread.comment.text.endsWith(' <3')).to.be.true 255 expect(thread.comment.text.endsWith(' <3')).to.be.true
256 }) 256 })
257 257
258 it('Should run filter:api.overviews.videos.list.{params,result}', async function () {
259 await servers[0].overviews.getVideos({ page: 1 })
260
261 // 3 because we get 3 samples per page
262 await servers[0].servers.waitUntilLog('Run hook filter:api.overviews.videos.list.params', 3)
263 await servers[0].servers.waitUntilLog('Run hook filter:api.overviews.videos.list.result', 3)
264 })
265
258 describe('Should run filter:video.auto-blacklist.result', function () { 266 describe('Should run filter:video.auto-blacklist.result', function () {
259 267
260 async function checkIsBlacklisted (id: number | string, value: boolean) { 268 async function checkIsBlacklisted (id: number | string, value: boolean) {