/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
-import 'mocha'
import { expect } from 'chai'
import {
CheckerBaseParams,
peertube: {
check_latest_version: {
enabled: true,
- url: `http://localhost:${port}/versions.json`
+ url: `http://127.0.0.1:${port}/versions.json`
}
},
plugins: {
index: {
enabled: true,
- check_latest_versions_interval: '5 seconds'
+ check_latest_versions_interval: '3 seconds'
}
}
}
adminNotifications = res.adminNotifications
baseParams = {
- server: server,
+ server,
emails,
socketNotifications: adminNotifications,
token: server.accessToken
describe('Latest PeerTube version notification', function () {
- it('Should not send a notification to admins if there is not a new version', async function () {
+ it('Should not send a notification to admins if there is no new version', async function () {
this.timeout(30000)
joinPeerTubeServer.setLatestVersion('1.4.2')
await checkNewPeerTubeVersion({ ...baseParams, latestVersion: '1.4.2', checkType: 'absence' })
})
- it('Should send a notification to admins on new plugin version', async function () {
+ it('Should send a notification to admins on new version', async function () {
this.timeout(30000)
joinPeerTubeServer.setLatestVersion('15.4.2')