/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
-import 'mocha'
import { ServerHookName, VideoPlaylistPrivacy, VideoPrivacy } from '@shared/models'
import {
cleanupTests,
let videoUUID: string
let threadId: number
- function checkHook (hook: ServerHookName) {
- return servers[0].servers.waitUntilLog('Run hook ' + hook)
+ function checkHook (hook: ServerHookName, strictCount = true) {
+ return servers[0].servers.waitUntilLog('Run hook ' + hook, 1, strictCount)
}
before(async function () {
- this.timeout(30000)
+ this.timeout(120000)
servers = await createMultipleServers(2)
await setAccessTokensToServers(servers)
})
})
+ describe('Notification hook', function () {
+
+ it('Should run action:notifier.notification.created', async function () {
+ await checkHook('action:notifier.notification.created', false)
+ })
+ })
+
after(async function () {
await cleanupTests(servers)
})