[ci] format

This commit is contained in:
matthewp 2022-09-15 16:36:38 +00:00 committed by fredkbot
parent 9a59e24e02
commit e40d8d8357
4 changed files with 36 additions and 36 deletions

View file

@ -20,10 +20,10 @@ describe('Astro Scripts before-hydration', () => {
hooks: { hooks: {
'astro:config:setup'({ injectScript }) { 'astro:config:setup'({ injectScript }) {
injectScript('before-hydration', `import '/src/scripts/global.js';`); injectScript('before-hydration', `import '/src/scripts/global.js';`);
} },
} },
} },
] ],
}); });
}); });
@ -53,7 +53,7 @@ describe('Astro Scripts before-hydration', () => {
}); });
it('Is included in the astro-island', async () => { it('Is included in the astro-island', async () => {
let html = await fixture.readFile('/index.html') let html = await fixture.readFile('/index.html');
let $ = cheerio.load(html); let $ = cheerio.load(html);
expect($('astro-island[before-hydration-url]')).has.a.lengthOf(1); expect($('astro-island[before-hydration-url]')).has.a.lengthOf(1);
}); });
@ -66,7 +66,7 @@ describe('Astro Scripts before-hydration', () => {
before(async () => { before(async () => {
fixture = await loadFixture({ fixture = await loadFixture({
root: './fixtures/before-hydration/' root: './fixtures/before-hydration/',
}); });
}); });
@ -121,10 +121,10 @@ describe('Astro Scripts before-hydration', () => {
hooks: { hooks: {
'astro:config:setup'({ injectScript }) { 'astro:config:setup'({ injectScript }) {
injectScript('before-hydration', `import '/src/scripts/global.js';`); injectScript('before-hydration', `import '/src/scripts/global.js';`);
} },
} },
} },
] ],
}); });
}); });
@ -171,5 +171,5 @@ describe('Astro Scripts before-hydration', () => {
}); });
}); });
}); });
}) });
}); });