未验证 提交 a96162d0 编写于 作者: J Joe Previte 提交者: GitHub

feat: add tests for node/util.open (#5256)

上级 744b301c
......@@ -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")
})
})
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册