feat: add tests for node/util.open (#5256)
This commit is contained in:
parent
744b301c7a
commit
a96162d075
@ -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")
|
||||||
|
})
|
||||||
|
})
|
||||||
|
Reference in New Issue
Block a user