diff --git a/test/unit/node/util.test.ts b/test/unit/node/util.test.ts index 0237296e5..805455b8e 100644 --- a/test/unit/node/util.test.ts +++ b/test/unit/node/util.test.ts @@ -537,3 +537,10 @@ describe("isWsl", () => { }) }) }) + +describe("open", () => { + it("should throw an error if address is a string", async () => { + const address = "localhost:3000" + await expect(util.open(address)).rejects.toThrow("Cannot open socket paths") + }) +})