From 4b1fe819b9620fc1a55c8942833219cf82440eb3 Mon Sep 17 00:00:00 2001 From: Joe Previte Date: Fri, 10 Jun 2022 21:29:48 +0000 Subject: [PATCH] feat: add tests for node/util.open --- 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 0237296e52af..805455b8e695 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") + }) +})