mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
[ci] format
This commit is contained in:
parent
10b2589093
commit
74a034c2cd
1 changed files with 8 additions and 2 deletions
|
@ -45,12 +45,18 @@ test.describe('Astro component HMR', () => {
|
|||
// https://github.com/withastro/astro/issues/3424
|
||||
const it = os.platform() === 'win32' ? test.skip : test;
|
||||
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 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
|
||||
await astro.editFile('./src/pages/index.astro', (content) =>
|
||||
|
|
Loading…
Reference in a new issue