Add notification plugin hook

This commit is contained in:
Chocobozzz
2022-08-03 11:33:43 +02:00
parent 0260dc8aca
commit 785f1897a4
23 changed files with 61 additions and 43 deletions

View File

@@ -17,8 +17,8 @@ describe('Test plugin action hooks', function () {
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 () {
@@ -225,6 +225,13 @@ describe('Test plugin action hooks', function () {
})
})
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)
})