1 import * as request from 'supertest'
2 import { ContactForm } from '../../models/server'
4 function sendContactForm (options: {
9 expectedStatus?: number
11 const path = '/api/v1/server/contact'
13 const body: ContactForm = {
14 fromEmail: options.fromEmail,
15 fromName: options.fromName,
18 return request(options.url)
21 .expect(options.expectedStatus || 204)
24 // ---------------------------------------------------------------------------