Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a7abb79

Browse files
committedApr 25, 2023
Add a test for non-ASCII path proxy
1 parent 6cce786 commit a7abb79

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
 

‎test/unit/node/proxy.test.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,17 @@ describe("proxy", () => {
187187
})
188188
}).rejects.toThrow()
189189
})
190+
191+
it("should proxy non-ASCII", async () => {
192+
e.get("*", (req, res) => {
193+
res.json("ほげ")
194+
})
195+
codeServer = await integration.setup(["--auth=none"], "")
196+
const resp = await codeServer.fetch(proxyPath.replace("wsup", "ほげ"))
197+
expect(resp.status).toBe(200)
198+
const json = await resp.json()
199+
expect(json).toBe("ほげ")
200+
})
190201
})
191202

192203
// NOTE@jsjoeio

0 commit comments

Comments
 (0)
Please sign in to comment.