/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
import 'mocha'
+import { MockSmtpServer } from '@server/tests/shared'
import { HttpStatusCode } from '@shared/models'
-import { cleanupTests, createSingleServer, killallServers, MockSmtpServer, PeerTubeServer } from '@shared/extra-utils'
-import { ContactFormCommand } from '@shared/extra-utils/server'
+import { cleanupTests, ContactFormCommand, createSingleServer, killallServers, PeerTubeServer } from '@shared/server-commands'
describe('Test contact form API validators', function () {
let server: PeerTubeServer
})
it('Should not accept a contact form if it is disabled in the configuration', async function () {
- this.timeout(10000)
+ this.timeout(25000)
await killallServers([ server ])
})
it('Should not accept a contact form if from email is invalid', async function () {
- this.timeout(10000)
+ this.timeout(25000)
await killallServers([ server ])