mirror of
https://github.com/coder/code-server.git
synced 2024-11-27 00:10:01 +03:00
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")
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user