cleanupTests,
MockInstancesIndex,
MockSmtpServer,
- prepareNotificationsTest,
PeerTubeServer,
+ prepareNotificationsTest,
wait,
waitJobs
} from '@shared/extra-utils'
it('Should send a notification only to admin when there is a new instance follower', async function () {
this.timeout(20000)
- await servers[2].follows.follow({ targets: [ servers[0].url ] })
+ await servers[2].follows.follow({ hosts: [ servers[0].url ] })
await waitJobs(servers)
}
await servers[0].config.updateCustomSubConfig({ newConfig: config })
- await servers[2].follows.follow({ targets: [ servers[0].url ] })
+ await servers[2].follows.follow({ hosts: [ servers[0].url ] })
await waitJobs(servers)