summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/components/ViewTransitions.astro4
-rw-r--r--packages/astro/e2e/view-transitions.test.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/packages/astro/components/ViewTransitions.astro b/packages/astro/components/ViewTransitions.astro
index 33cad86a2..9c59ba9ab 100644
--- a/packages/astro/components/ViewTransitions.astro
+++ b/packages/astro/components/ViewTransitions.astro
@@ -69,8 +69,8 @@ const { fallback = 'animate' } = Astro.props as Props;
doc.documentElement.dataset.astroTransition = dir;
const swap = () => {
document.documentElement.replaceWith(doc.documentElement);
- triggerEvent('astro:beforeload')
- }
+ triggerEvent('astro:beforeload');
+ };
// Wait on links to finish, to prevent FOUC
const links = Array.from(doc.querySelectorAll('head link[rel=stylesheet]')).map(
diff --git a/packages/astro/e2e/view-transitions.test.js b/packages/astro/e2e/view-transitions.test.js
index 2dd02afe2..12ccd2b89 100644
--- a/packages/astro/e2e/view-transitions.test.js
+++ b/packages/astro/e2e/view-transitions.test.js
@@ -168,9 +168,9 @@ test.describe('View Transitions', () => {
// go to page 2
await page.click('#click-two');
p = page.locator('#two');
- const h = page.locator('html');
+ const h = page.locator('html');
await expect(h, 'imported CSS updated').toHaveCSS('background-color', 'rgba(0, 0, 0, 0)');
- })
+ });
test('click hash links does not do navigation', async ({ page, astro }) => {
// Go to page 1