From c4cb7acaace47682339d44220ec0876ae97475ac Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 4 Sep 2026 14:33:31 +0000 Subject: [PATCH] Update spike snapshot to the Uzumibi root body The spike spec expected "Hello World!" and failed. Updated the inline snapshot to the body returned by the get "/" handler in lib/app.rb, and renamed the tests accordingly. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01DRFFWaKJnwGmAXz2mN61Xn --- .../test/index.spec.js | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/uzumibi-on-cloudflare-spike/test/index.spec.js b/uzumibi-on-cloudflare-spike/test/index.spec.js index e2807ff..6320206 100644 --- a/uzumibi-on-cloudflare-spike/test/index.spec.js +++ b/uzumibi-on-cloudflare-spike/test/index.spec.js @@ -2,19 +2,29 @@ import { env, createExecutionContext, waitOnExecutionContext, SELF } from 'cloud import { describe, it, expect } from 'vitest'; import worker from '../src'; -describe('Hello World worker', () => { - it('responds with Hello World! (unit style)', async () => { +describe('Uzumibi worker', () => { + it('responds with Uzumibi (unit style)', async () => { const request = new Request('http://example.com'); // Create an empty context to pass to `worker.fetch()`. const ctx = createExecutionContext(); const response = await worker.fetch(request, env, ctx); // Wait for all `Promise`s passed to `ctx.waitUntil()` to settle before running test assertions await waitOnExecutionContext(ctx); - expect(await response.text()).toMatchInlineSnapshot(`"Hello World!"`); + expect(await response.text()).toMatchInlineSnapshot(` + ""Uzumibi" is a Japanese term that refers + to live embers buried under a layer of ash + to keep the fire from going out. + " + `); }); - it('responds with Hello World! (integration style)', async () => { + it('responds with Uzumibi (integration style)', async () => { const response = await SELF.fetch('http://example.com'); - expect(await response.text()).toMatchInlineSnapshot(`"Hello World!"`); + expect(await response.text()).toMatchInlineSnapshot(` + ""Uzumibi" is a Japanese term that refers + to live embers buried under a layer of ash + to keep the fire from going out. + " + `); }); });