Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp authored and astrobot-houston committed Jul 27, 2023
1 parent 5161cf9 commit 73eb4df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/astro/components/ViewTransitions.astro
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 2 additions & 2 deletions packages/astro/e2e/view-transitions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 73eb4df

Please sign in to comment.