Skip to content

Commit

Permalink
chore: remove unnecessary awaits (#13066)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored Nov 28, 2024
1 parent fb146e7 commit 10d0942
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -633,13 +633,13 @@ test.describe('Prefetching', () => {
await page.goto('/routing/hashes/a');

await clicknav('[href="#preload"]');
await expect(page.url()).toBe(`${baseURL}/routing/hashes/a#preload`);
expect(page.url()).toBe(`${baseURL}/routing/hashes/a#preload`);

await clicknav('[href="/routing/hashes/a"]');
await expect(page.url()).toBe(`${baseURL}/routing/hashes/a`);
expect(page.url()).toBe(`${baseURL}/routing/hashes/a`);

await clicknav('[href="#preload"]');
await expect(page.url()).toBe(`${baseURL}/routing/hashes/a#preload`);
expect(page.url()).toBe(`${baseURL}/routing/hashes/a#preload`);
});

test('does not rerun load on calls to duplicate preload hash route', async ({ app, page }) => {
Expand Down

0 comments on commit 10d0942

Please sign in to comment.