]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - server/tests/plugins/filter-hooks.ts
Add plugin API tests
[github/Chocobozzz/PeerTube.git] / server / tests / plugins / filter-hooks.ts
CommitLineData
9b474844
C
1/* tslint:disable:no-unused-expression */
2
3import * as chai from 'chai'
4import 'mocha'
5import { cleanupTests, flushAndRunServer, ServerInfo } from '../../../shared/extra-utils/server/servers'
6import { setAccessTokensToServers } from '../../../shared/extra-utils'
7
8const expect = chai.expect
9
10describe('Test plugin filter hooks', function () {
11 let server: ServerInfo
12
13 before(async function () {
14 this.timeout(30000)
15 server = await flushAndRunServer(1)
16
17 await setAccessTokensToServers([ server ])
18 })
19
20 it('Should execute ', async function () {
09071200 21 // empty
9b474844
C
22 })
23
24 after(async function () {
25 await cleanupTests([ server ])
26 })
27})