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:
parent
0d8ecb7592
commit
6c5065a011
63 changed files with 688 additions and 708 deletions
|
@ -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')
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue