X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fapi%2Fcheck-params%2Fcontact-form.ts;h=b2126b9b09981b7d80771d409a1ea743d86a2f83;hb=77e9f859c6ad75ba179dec74e5410cc651eaa49b;hp=55004020fc256f445c94d6a26f13d3e096c2e84b;hpb=7c3b79768bd174b22154e8d2df0b1211e01ee56a;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/api/check-params/contact-form.ts b/server/tests/api/check-params/contact-form.ts index 55004020f..b2126b9b0 100644 --- a/server/tests/api/check-params/contact-form.ts +++ b/server/tests/api/check-params/contact-form.ts @@ -1,22 +1,8 @@ -/* tslint:disable:no-unused-expression */ +/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ import 'mocha' -import { - flushTests, - immutableAssign, - killallServers, - reRunServer, - flushAndRunServer, - ServerInfo, - setAccessTokensToServers, cleanupTests -} from '../../../../shared/extra-utils' -import { - checkBadCountPagination, - checkBadSortPagination, - checkBadStartPagination -} from '../../../../shared/extra-utils/requests/check-api-params' -import { getAccount } from '../../../../shared/extra-utils/users/accounts' +import { cleanupTests, flushAndRunServer, immutableAssign, killallServers, reRunServer, ServerInfo } from '../../../../shared/extra-utils' import { sendContactForm } from '../../../../shared/extra-utils/server/contact-form' import { MockSmtpServer } from '../../../../shared/extra-utils/miscs/email' @@ -26,6 +12,7 @@ describe('Test contact form API validators', function () { const defaultBody = { fromName: 'super name', fromEmail: 'toto@example.com', + subject: 'my subject', body: 'Hello, how are you?' } let emailPort: number @@ -87,6 +74,6 @@ describe('Test contact form API validators', function () { after(async function () { MockSmtpServer.Instance.kill() - // await cleanupTests([ server ]) + await cleanupTests([ server ]) }) })