Skip to content

Commit 4b1fe81

Browse files
committed
feat: add tests for node/util.open
1 parent 2c1cf02 commit 4b1fe81

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/unit/node/util.test.ts

+7
Original file line numberDiff line numberDiff line change
@@ -537,3 +537,10 @@ describe("isWsl", () => {
537537
})
538538
})
539539
})
540+
541+
describe("open", () => {
542+
it("should throw an error if address is a string", async () => {
543+
const address = "localhost:3000"
544+
await expect(util.open(address)).rejects.toThrow("Cannot open socket paths")
545+
})
546+
})

0 commit comments

Comments
 (0)