0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

[ci] format

This commit is contained in:
tony-sull 2022-05-31 18:13:53 +00:00 committed by github-actions[bot]
parent 10b2589093
commit 74a034c2cd

View file

@ -45,12 +45,18 @@ test.describe('Astro component HMR', () => {
// https://github.com/withastro/astro/issues/3424 // https://github.com/withastro/astro/issues/3424
const it = os.platform() === 'win32' ? test.skip : test; const it = os.platform() === 'win32' ? test.skip : test;
it('hoisted scripts', async ({ page, astro }) => { it('hoisted scripts', async ({ page, astro }) => {
const initialLog = page.waitForEvent('console', (message) => message.text() === 'Hello, Astro!'); const initialLog = page.waitForEvent(
'console',
(message) => message.text() === 'Hello, Astro!'
);
await page.goto(astro.resolveUrl('/')); await page.goto(astro.resolveUrl('/'));
await initialLog; await initialLog;
const updatedLog = page.waitForEvent('console', (message) => message.text() === 'Hello, updated Astro!'); const updatedLog = page.waitForEvent(
'console',
(message) => message.text() === 'Hello, updated Astro!'
);
// Edit the hoisted script on the page // Edit the hoisted script on the page
await astro.editFile('./src/pages/index.astro', (content) => await astro.editFile('./src/pages/index.astro', (content) =>