aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/extra-utils/miscs/email.ts
diff options
context:
space:
mode:
Diffstat (limited to 'shared/extra-utils/miscs/email.ts')
-rw-r--r--shared/extra-utils/miscs/email.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/extra-utils/miscs/email.ts b/shared/extra-utils/miscs/email.ts
index b2a1093da..d6219deb3 100644
--- a/shared/extra-utils/miscs/email.ts
+++ b/shared/extra-utils/miscs/email.ts
@@ -12,7 +12,7 @@ class MockSmtpServer {
12 private constructor () { 12 private constructor () {
13 this.emailChildProcess = fork(`${__dirname}/email-child-process`, []) 13 this.emailChildProcess = fork(`${__dirname}/email-child-process`, [])
14 14
15 this.emailChildProcess.on('message', (msg) => { 15 this.emailChildProcess.on('message', (msg: any) => {
16 if (msg.email) { 16 if (msg.email) {
17 return this.emails.push(msg.email) 17 return this.emails.push(msg.email)
18 } 18 }
@@ -36,7 +36,7 @@ class MockSmtpServer {
36 this.emailChildProcess.on('exit', () => { 36 this.emailChildProcess.on('exit', () => {
37 return rej(new Error('maildev exited unexpectedly, confirm port not in use')) 37 return rej(new Error('maildev exited unexpectedly, confirm port not in use'))
38 }) 38 })
39 this.emailChildProcess.on('message', (msg) => { 39 this.emailChildProcess.on('message', (msg: any) => {
40 if (msg.err) { 40 if (msg.err) {
41 return rej(new Error(msg.err)) 41 return rej(new Error(msg.err))
42 } 42 }