mirror of
https://github.com/danog/code-server.git
synced 2024-11-30 04:39:46 +01:00
fix: add void for resolve in socket test
This commit is contained in:
parent
6bf51caa17
commit
850c7e1a91
@ -55,7 +55,7 @@ describe("SocketProxyProvider", () => {
|
||||
const socketPath = await provider.findFreeSocketPath(path.join(tmpdir, "tests/tls-socket-proxy"))
|
||||
await fs.remove(socketPath)
|
||||
|
||||
return new Promise((_resolve) => {
|
||||
return new Promise<void>((_resolve) => {
|
||||
const resolved: { [key: string]: boolean } = { client: false, server: false }
|
||||
const resolve = (type: "client" | "server"): void => {
|
||||
resolved[type] = true
|
||||
|
Loading…
Reference in New Issue
Block a user