diff --git a/packages/create-cloudflare/templates-experimental/hello-world-with-assets/ts/test/index.spec.ts b/packages/create-cloudflare/templates-experimental/hello-world-with-assets/ts/test/index.spec.ts index c0a5619b7804..f8360f4164b0 100644 --- a/packages/create-cloudflare/templates-experimental/hello-world-with-assets/ts/test/index.spec.ts +++ b/packages/create-cloudflare/templates-experimental/hello-world-with-assets/ts/test/index.spec.ts @@ -5,7 +5,7 @@ import worker from '../src'; describe('Hello World user worker', () => { describe('request for /message', () => { it('/ responds with "Hello, World!" (unit style)', async () => { - const request = new Request('http://example.com/message'); + const request = new Request('http://example.com/message'); // Create an empty context to pass to `worker.fetch()`. const ctx = createExecutionContext(); const response = await worker.fetch(request, env, ctx); @@ -16,14 +16,14 @@ describe('Hello World user worker', () => { it('responds with "Hello, World!" (integration style)', async () => { const request = new Request('http://example.com/message'); - const response = await SELF.fetch(request, env, ctx); + const response = await SELF.fetch(request, env); expect(await response.text()).toMatchInlineSnapshot(`"Hello, World!"`); }); }); describe('request for /random', () => { it('/ responds with a random UUID (unit style)', async () => { - const request = new Request('http://example.com/random'); + const request = new Request('http://example.com/random'); // Create an empty context to pass to `worker.fetch()`. const ctx = createExecutionContext(); const response = await worker.fetch(request, env, ctx); @@ -34,7 +34,7 @@ describe('Hello World user worker', () => { it('responds with a random UUID (integration style)', async () => { const request = new Request('http://example.com/random'); - const response = await SELF.fetch(request, env, ctx); + const response = await SELF.fetch(request); expect(await response.text()).toMatch(/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}/); }); });