1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-04 02:09:37 +02:00

Introduce server commands

This commit is contained in:
Chocobozzz 2021-07-13 09:43:59 +02:00
parent 0d8ecb7592
commit 6c5065a011
No known key found for this signature in database
GPG key ID: 583A612D890159BE
63 changed files with 688 additions and 708 deletions

View file

@ -8,7 +8,6 @@ import {
cleanupTests,
getAllNotificationsSettings,
getMyUserInformation,
immutableAssign,
MockSmtpServer,
prepareNotificationsTest,
ServerInfo,
@ -118,7 +117,7 @@ describe('Test notifications API', function () {
const { name, uuid } = await uploadRandomVideo(server)
const check = { web: true, mail: true }
await checkNewVideoFromSubscription(immutableAssign(baseParams, { check }), name, uuid, 'absence')
await checkNewVideoFromSubscription({ ...baseParams, ...check }, name, uuid, 'absence')
})
it('Should only have web notifications', async function () {
@ -139,12 +138,12 @@ describe('Test notifications API', function () {
{
const check = { mail: true, web: false }
await checkNewVideoFromSubscription(immutableAssign(baseParams, { check }), name, uuid, 'absence')
await checkNewVideoFromSubscription({ ...baseParams, ...check }, name, uuid, 'absence')
}
{
const check = { mail: false, web: true }
await checkNewVideoFromSubscription(immutableAssign(baseParams, { check }), name, uuid, 'presence')
await checkNewVideoFromSubscription({ ...baseParams, ...check }, name, uuid, 'presence')
}
})
@ -166,12 +165,12 @@ describe('Test notifications API', function () {
{
const check = { mail: false, web: true }
await checkNewVideoFromSubscription(immutableAssign(baseParams, { check }), name, uuid, 'absence')
await checkNewVideoFromSubscription({ ...baseParams, ...check }, name, uuid, 'absence')
}
{
const check = { mail: true, web: false }
await checkNewVideoFromSubscription(immutableAssign(baseParams, { check }), name, uuid, 'presence')
await checkNewVideoFromSubscription({ ...baseParams, ...check }, name, uuid, 'presence')
}
})