summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar matthewp <matthewp@users.noreply.github.com> 2023-07-27 12:59:49 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2023-07-27 12:59:49 +0000
commit73eb4dfe2f1ed8bceeba6fb57d60c583f61d78b3 (patch)
tree2426cee41af85d5c7cba72279c96cf899408379f
parent5161cf919c81bd3681af221def0abab7d25abec0 (diff)
downloadastro-73eb4dfe2f1ed8bceeba6fb57d60c583f61d78b3.tar.gz
astro-73eb4dfe2f1ed8bceeba6fb57d60c583f61d78b3.tar.zst
astro-73eb4dfe2f1ed8bceeba6fb57d60c583f61d78b3.zip
[ci] format
-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