await setAccessTokensToServers([ server ])
command = server.contactForm
})
it('Should send a contact form', async function () {
await setAccessTokensToServers([ server ])
command = server.contactForm
})
it('Should send a contact form', async function () {
await command.send({
fromEmail: 'toto@example.com',
body: 'my super message',
await command.send({
fromEmail: 'toto@example.com',
body: 'my super message',
expect(email['replyTo'][0]['address']).equal('toto@example.com')
expect(email['to'][0]['address']).equal('admin' + server.internalServerNumber + '@example.com')
expect(email['subject']).contains('my subject')
expect(email['replyTo'][0]['address']).equal('toto@example.com')
expect(email['to'][0]['address']).equal('admin' + server.internalServerNumber + '@example.com')
expect(email['subject']).contains('my subject')