Skip to content

Commit 6c3a98d

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 018fa3a commit 6c3a98d

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

tests/hono-e2e.test.ts

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,16 @@ describe("Hono + Honolate E2E", () => {
3232
});
3333
describe("Untranslated text", () => {
3434
it("GET /untranslated should return untranslated text", async () => {
35-
const resDefault = await (await testApp.untranslated.$get({})).text();
36-
const resEn = await (await testApp.untranslated.$get({
35+
const resDefaultResp = await testApp.untranslated.$get({});
36+
const resDefault = await resDefaultResp.text();
37+
const resEnResp = await testApp.untranslated.$get({
3738
query: { lang: "en" },
38-
})).text();
39-
const resDe = await (await testApp.untranslated.$get({
39+
});
40+
const resEn = await resEnResp.text();
41+
const resDeResp = await testApp.untranslated.$get({
4042
query: { lang: "de" },
41-
})).text();
43+
});
44+
const resDe = await resDeResp.text();
4245

4346
expect(resDefault).toBe("Untranslated text");
4447
expect(resEn).toBe("Untranslated text");

0 commit comments

Comments
 (0)