diff --git a/test/unit/cli.test.ts b/test/unit/cli.test.ts index 94c72205..531dd434 100644 --- a/test/unit/cli.test.ts +++ b/test/unit/cli.test.ts @@ -360,7 +360,7 @@ describe("cli", () => { it("should use existing if --reuse-window is set", async () => { args["reuse-window"] = true - await expect(await shouldOpenInExistingInstance(args)).toStrictEqual(undefined) + await expect(shouldOpenInExistingInstance(args)).resolves.toStrictEqual(undefined) await fs.writeFile(vscodeIpcPath, "test") await expect(shouldOpenInExistingInstance(args)).resolves.toStrictEqual("test") diff --git a/test/unit/socket.test.ts b/test/unit/socket.test.ts index da0b404a..01177127 100644 --- a/test/unit/socket.test.ts +++ b/test/unit/socket.test.ts @@ -110,10 +110,10 @@ describe("SocketProxyProvider", () => { provider.stop() // We don't need more proxies. proxy.write("server proxy->client") - const dataFromServerToClient = await (await getData(fromServerToClient)).toString() + const dataFromServerToClient = (await getData(fromServerToClient)).toString() expect(dataFromServerToClient).toBe("server proxy->client") client.write("client->server proxy") - const dataFromClientToProxy = await (await getData(fromClientToProxy)).toString() + const dataFromClientToProxy = (await getData(fromClientToProxy)).toString() expect(dataFromClientToProxy).toBe("client->server proxy") expect(errors).toEqual(0) })