]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/tests/api/check-params/contact-form.ts
Introduce server commands
[github/Chocobozzz/PeerTube.git] / server / tests / api / check-params / contact-form.ts
index fb30766d90bca1991f0d5ea91448164ffbc8003e..4eed1661aad7a343c50a4efea76ebbe7af6a3b3d 100644 (file)
@@ -36,7 +36,7 @@ describe('Test contact form API validators', function () {
   it('Should not accept a contact form if it is disabled in the configuration', async function () {
     this.timeout(10000)
 
-    killallServers([ server ])
+    await killallServers([ server ])
 
     // Contact form is disabled
     await reRunServer(server, { smtp: { hostname: 'localhost', port: emailPort }, contact_form: { enabled: false } })
@@ -46,7 +46,7 @@ describe('Test contact form API validators', function () {
   it('Should not accept a contact form if from email is invalid', async function () {
     this.timeout(10000)
 
-    killallServers([ server ])
+    await killallServers([ server ])
 
     // Email & contact form enabled
     await reRunServer(server, { smtp: { hostname: 'localhost', port: emailPort } })
@@ -69,7 +69,7 @@ describe('Test contact form API validators', function () {
   })
 
   it('Should accept a contact form with the correct parameters', async function () {
-    await command.send({ ...defaultBody })
+    await command.send(defaultBody)
   })
 
   after(async function () {