1 import * as request from 'supertest'
2 import { ContactForm } from '../../models/server'
4 function sendContactForm (options: {
10 expectedStatus?: number
12 const path = '/api/v1/server/contact'
14 const body: ContactForm = {
15 fromEmail: options.fromEmail,
16 fromName: options.fromName,
17 subject: options.subject,
20 return request(options.url)
23 .expect(options.expectedStatus || 204)
26 // ---------------------------------------------------------------------------