chore: update mock Deno.Conn (#1867)

This commit is contained in:
Yoshiya Hinosawa 2022-02-01 18:28:05 +09:00 committed by GitHub
parent 35ab96449b
commit c331dad1df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,6 +24,8 @@ export function mockConn(base: Partial<Deno.Conn> = {}): Deno.Conn {
return Promise.resolve(-1);
},
close: (): void => {},
setNoDelay: (_nodelay?: boolean): void => {},
setKeepAlive: (_keepalive?: boolean): void => {},
...base,
};
}