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

This commit is contained in:
Joe Previte 2022-06-13 14:16:46 -07:00 committed by GitHub
parent 744b301c7a
commit a96162d075
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -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")
})
})