Skip to content

Commit

Permalink
chore: add test for #12763 (#12774)
Browse files Browse the repository at this point in the history
  • Loading branch information
eltigerchino authored Oct 9, 2024
1 parent 5241d8a commit 5f1de9f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export function load({ url }) {
console.log(url.searchParams);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>hello world</p>
6 changes: 6 additions & 0 deletions packages/kit/test/apps/basics/test/server.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,12 @@ test.describe('Load', () => {
expect(await response.text()).toBe('');
expect(response.headers()['allow']).toBe('GET, HEAD, OPTIONS, POST');
});

test('allows logging URL search params', async ({ page }) => {
await page.goto('/load/server-log-search-param');

expect(await page.textContent('p')).toBe('hello world');
});
});

test.describe('Routing', () => {
Expand Down

0 comments on commit 5f1de9f

Please sign in to comment.