From e7671e97fa0c69ce482f6a49031065467cb5a5f2 Mon Sep 17 00:00:00 2001 From: Jacob M-G Evans Date: Tue, 13 Jun 2023 12:18:03 -0500 Subject: [PATCH] Fix failing test Worker TypeScript test was failing and type error indicated it was related to the input of the workers.dev --- templates/worker-typescript/src/index.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/worker-typescript/src/index.test.ts b/templates/worker-typescript/src/index.test.ts index 1ce4ba68af05..2c1ff3f25377 100644 --- a/templates/worker-typescript/src/index.test.ts +++ b/templates/worker-typescript/src/index.test.ts @@ -14,8 +14,8 @@ describe('Worker', () => { }); it('should return 200 response', async () => { - const req = new Request('http://falcon', { method: 'GET' }); - const resp = await worker.fetch(req); + const req = new Request('https://example.com', { method: 'GET' }); + const resp = await worker.fetch(req.url); expect(resp.status).toBe(200); const text = await resp.text();