Skip to content

Commit 1762dfe

Browse files
Apply suggested fix to tests/hono-e2e.test.ts from Copilot Autofix
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
1 parent b4e8173 commit 1762dfe

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/hono-e2e.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ describe("Hono + Honolate E2E", () => {
6262
});
6363
describe("Escape test", () => {
6464
it("GET /escape-test should return correctly escaped text", async () => {
65-
const res = await (await testApp["escape-test"].$get({})).text();
65+
const resObj = await testApp["escape-test"].$get({});
66+
const res = await resObj.text();
6667
expect(res).toBe("This text contains 1 {} curly braces and \\{{}}{0}.");
6768
const resDe = await (await testApp["escape-test"].$get({
6869
query: { lang: "de" },

0 commit comments

Comments
 (0)