diff options
Diffstat (limited to 'server/tests/plugins')
-rw-r--r-- | server/tests/plugins/filter-hooks.ts | 8 |
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) { |