Update server dependencies

This commit is contained in:
Chocobozzz
2020-04-01 14:16:19 +02:00
parent 4adebd513e
commit d96994289b
6 changed files with 438 additions and 342 deletions

View File

@@ -12,7 +12,7 @@ class MockSmtpServer {
private constructor () {
this.emailChildProcess = fork(`${__dirname}/email-child-process`, [])
this.emailChildProcess.on('message', (msg) => {
this.emailChildProcess.on('message', (msg: any) => {
if (msg.email) {
return this.emails.push(msg.email)
}
@@ -36,7 +36,7 @@ class MockSmtpServer {
this.emailChildProcess.on('exit', () => {
return rej(new Error('maildev exited unexpectedly, confirm port not in use'))
})
this.emailChildProcess.on('message', (msg) => {
this.emailChildProcess.on('message', (msg: any) => {
if (msg.err) {
return rej(new Error(msg.err))
}