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();