Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterKale committed Aug 4, 2024
1 parent ff0f5a3 commit 277f922
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ describe('Hello World worker', () => {
const response = await worker.fetch(request, env, ctx);
// Wait for all `Promise`s passed to `ctx.waitUntil()` to settle before running test assertions
await waitOnExecutionContext(ctx);
expect(await response.text()).toMatchInlineSnapshot(`"Hello World!"`);
expect(await response.text()).toMatchInlineSnapshot(`"Hello passkeys.dev!"`);
});

it('responds with Hello World! (integration style)', async () => {
const response = await SELF.fetch('https://example.com');
expect(await response.text()).toMatchInlineSnapshot(`"Hello World!"`);
expect(await response.text()).toMatchInlineSnapshot(`"Hello passkeys.dev!"`);
});
});

0 comments on commit 277f922

Please sign in to comment.