Skip to content

Commit

Permalink
chore: add missing await (#13327)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored Jan 16, 2025
1 parent 34a03ff commit 0142dd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/kit/src/runtime/server/page/load_data.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ test('succeeds when acao header present on cors', async () => {
assert.equal(text, 'foo');
});

test('errors when no acao header present on cors', () => {
test('errors when no acao header present on cors', async () => {
const fetch = create_fetch({});

expect(async () => {
await expect(async () => {
const response = await fetch('https://domain-b.com');
await response.text();
}).rejects.toThrowError(
Expand Down

0 comments on commit 0142dd8

Please sign in to comment.