Skip to content

Commit

Permalink
Fix failing test (#3456)
Browse files Browse the repository at this point in the history
Worker TypeScript test was failing and type error indicated it was related to the input of the workers.dev
  • Loading branch information
JacobMGEvans authored Jun 13, 2023
1 parent acc9881 commit 7ddbbfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/worker-typescript/src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 7ddbbfe

Please sign in to comment.