Add hook filters tests
authorChocobozzz <me@florianbigard.com>
Fri, 19 Jul 2019 15:30:41 +0000 (17:30 +0200)
committerChocobozzz <chocobozzz@cpy.re>
Wed, 24 Jul 2019 08:58:16 +0000 (10:58 +0200)
commit89cd12756035a146bbcc4db78cd3cd64f2f3d88d
tree896cd9fca1e0baa969b1f7a5b398ec1602761661
parent09071200c73f5358e1d0bfb61a274e4f2c4ec52b
Add hook filters tests
18 files changed:
server.ts
server/controllers/activitypub/client.ts
server/controllers/api/videos/comment.ts
server/controllers/api/videos/index.ts
server/lib/plugins/hooks.ts
server/lib/plugins/plugin-manager.ts
server/lib/video-blacklist.ts
server/middlewares/validators/videos/videos.ts
server/models/video/video.ts
server/tests/cli/plugins.ts
server/tests/fixtures/peertube-plugin-test-two/main.js [new file with mode: 0644]
server/tests/fixtures/peertube-plugin-test-two/package.json [new file with mode: 0644]
server/tests/fixtures/peertube-plugin-test/main.js
server/tests/plugins/action-hooks.ts
server/tests/plugins/filter-hooks.ts
shared/core-utils/plugins/hooks.ts
shared/extra-utils/server/plugins.ts
shared/extra-utils/server/servers.ts