diff --git a/types/simplesmtp/simplesmtp-tests.ts b/types/simplesmtp/simplesmtp-tests.ts index edb551d6e3..29337b8b82 100644 --- a/types/simplesmtp/simplesmtp-tests.ts +++ b/types/simplesmtp/simplesmtp-tests.ts @@ -26,5 +26,5 @@ server = simplesmtp.createSimpleServer({ ): void => { callback(null, true); }); -(this as any)._server.listen(this.port, "0.0.0.0", (error?: Error): void => { +(this as any)._server.listen((this as any).port, "0.0.0.0", (error?: Error): void => { });