- await reRunServer(server, { smtp: { hostname: 'localhost', port: emailPort } })
-
- await sendContactForm(immutableAssign(defaultBody, {
- url: server.url,
- expectedStatus: HttpStatusCode.BAD_REQUEST_400,
- fromEmail: 'badEmail'
- }))
- await sendContactForm(immutableAssign(defaultBody, {
- url: server.url,
- expectedStatus: HttpStatusCode.BAD_REQUEST_400,
- fromEmail: 'badEmail@'
- }))
- await sendContactForm(immutableAssign(defaultBody, {
- url: server.url,
- expectedStatus: HttpStatusCode.BAD_REQUEST_400,
- fromEmail: undefined
- }))
+ await server.run({ smtp: { hostname: 'localhost', port: emailPort } })
+
+ await command.send({ ...defaultBody, fromEmail: 'badEmail', expectedStatus: HttpStatusCode.BAD_REQUEST_400 })
+ await command.send({ ...defaultBody, fromEmail: 'badEmail@', expectedStatus: HttpStatusCode.BAD_REQUEST_400 })
+ await command.send({ ...defaultBody, fromEmail: undefined, expectedStatus: HttpStatusCode.BAD_REQUEST_400 })