X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fplugins%2Ffilter-hooks.ts;h=80014566bf53883f3e6fa4ae0ea60c05466f2142;hb=650580504cf14a87bd4025eec9673eb5642dc71d;hp=02915f08cb2f8199f383cdb778b618544f014c68;hpb=a554bc1a260a525cd635d62404b9fe76fdb9e36b;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/plugins/filter-hooks.ts b/server/tests/plugins/filter-hooks.ts index 02915f08c..80014566b 100644 --- a/server/tests/plugins/filter-hooks.ts +++ b/server/tests/plugins/filter-hooks.ts @@ -537,6 +537,16 @@ describe('Test plugin filter hooks', function () { }) }) + describe('Stats filters', function () { + + it('Should run filter:api.server.stats.get.result', async function () { + const data = await servers[0].stats.get() + + expect((data as any).customStats).to.equal(14) + }) + + }) + after(async function () { await cleanupTests(servers) })