Skip to content

Commit

Permalink
Making sure test failure is caught
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterKale committed Aug 4, 2024
1 parent f7807d9 commit 086b9a9
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 passkeys.dev!"`);
expect(await response.text()).toMatchInlineSnapshot(`"Hello world!"`);

Check failure on line 18 in test/index.spec.ts

View workflow job for this annotation

GitHub Actions / test (20)

test/index.spec.ts > Hello World worker > responds with Hello World! (unit style)

Error: Snapshot `Hello World worker > responds with Hello World! (unit style) 1` mismatched - Expected + Received - "Hello world!" + "Hello passkeys.dev!" ❯ test/index.spec.ts:18:33
});

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

Check failure on line 23 in test/index.spec.ts

View workflow job for this annotation

GitHub Actions / test (20)

test/index.spec.ts > Hello World worker > responds with Hello World! (integration style)

Error: Snapshot `Hello World worker > responds with Hello World! (integration style) 1` mismatched - Expected + Received - "Hello world!" + "Hello passkeys.dev!" ❯ test/index.spec.ts:23:33
});
});

0 comments on commit 086b9a9

Please sign in to comment.