From e322cc4178b98aaa47cd755bbe920ba38c7e1f4a Mon Sep 17 00:00:00 2001 From: isucon server <61941819+ogadra@users.noreply.github.com> Date: Fri, 22 Nov 2024 21:11:26 +0900 Subject: [PATCH] test: add hono-context test for cloudflare workers --- examples/cloudflare-workers/e2e.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/cloudflare-workers/e2e.test.ts b/examples/cloudflare-workers/e2e.test.ts index 045b0cd..1af16bd 100644 --- a/examples/cloudflare-workers/e2e.test.ts +++ b/examples/cloudflare-workers/e2e.test.ts @@ -18,6 +18,9 @@ test('Should return 200 response - /', async ({ page }) => { const contentH4 = await page.textContent('h4') expect(contentH4).toBe('Extra is stuff') + + const contentH5 = await page.textContent('h5') + expect(contentH5).toBe('Var in Variables is My variable set in c.set') }) test('Should return 200 response - /api', async ({ page }) => {