Skip to content

Commit

Permalink
Fix failing test
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 committed Jun 13, 2023
1 parent 8414964 commit e7671e9
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 e7671e9

Please sign in to comment.