Feature/subject in contact form (#1926)

* #1915 Add a subject to contact form and add it to email sent

* #1915 Add subject to contact form tests

* #1915 Contact form test corrected && tslint correction
This commit is contained in:
Nassim Bounouas
2019-06-21 08:49:35 +02:00
committed by Chocobozzz
parent d1ea2a988d
commit 4e9fa5b7e9
10 changed files with 42 additions and 8 deletions

View File

@@ -5,6 +5,7 @@ function sendContactForm (options: {
url: string,
fromEmail: string,
fromName: string,
subject: string,
body: string,
expectedStatus?: number
}) {
@@ -13,6 +14,7 @@ function sendContactForm (options: {
const body: ContactForm = {
fromEmail: options.fromEmail,
fromName: options.fromName,
subject: options.subject,
body: options.body
}
return request(options.url)