mirror of
https://github.com/coder/code-server.git
synced 2026-11-30 00:17:01 +08:00
feat: add tests for node/util.open (#5256)
This commit is contained in:
1 parent
744b301c7a
commit
a96162d075
1 file changed
+7
@@ -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