From 0119a271aef0c8e25663b3a456d62a523db3428b Mon Sep 17 00:00:00 2001 From: matthewp Date: Wed, 20 Sep 2023 13:20:38 +0000 Subject: [PATCH] [ci] format --- packages/astro/components/ViewTransitions.astro | 2 +- packages/astro/e2e/view-transitions.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/astro/components/ViewTransitions.astro b/packages/astro/components/ViewTransitions.astro index 1e59d89d9..39b9996ce 100644 --- a/packages/astro/components/ViewTransitions.astro +++ b/packages/astro/components/ViewTransitions.astro @@ -175,7 +175,7 @@ const { fallback = 'animate' } = Astro.props as Props; ); // Replace scripts in both the head and body. - for(const s1 of document.scripts) { + for (const s1 of document.scripts) { for (const s2 of newDocument.scripts) { if ( // Inline diff --git a/packages/astro/e2e/view-transitions.test.js b/packages/astro/e2e/view-transitions.test.js index 0ff18a150..d777d9b2f 100644 --- a/packages/astro/e2e/view-transitions.test.js +++ b/packages/astro/e2e/view-transitions.test.js @@ -682,7 +682,7 @@ test.describe('View Transitions', () => { test('body inline scripts do not re-execute on navigation', async ({ page, astro }) => { const errors = []; - page.addListener('pageerror', err => { + page.addListener('pageerror', (err) => { errors.push(err); });