From a96162d0754bdf7a730db4c3f076664d83d424c8 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Mon, 13 Jun 2022 14:16:46 -0700 Subject: [PATCH] feat: add tests for node/util.open (#5256) --- test/unit/node/util.test.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/unit/node/util.test.ts b/test/unit/node/util.test.ts index 0237296e..805455b8 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") + }) +}) -- GitLab