Archived
1
0

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

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