[ci] format

This commit is contained in:
matthewp 2023-02-08 22:17:40 +00:00 committed by fredkbot
parent 938ad514cd
commit a64a800d9b
2 changed files with 4 additions and 3 deletions

View file

@ -98,7 +98,8 @@ export function astroConfigBuildPlugin(
},
'build:post': ({ ssrOutputs, clientOutputs, mutate }) => {
const outputs = ssrOutputs.flatMap((o) => o.output);
const prependBase = (src: string) => prependForwardSlash(npath.posix.join(options.settings.config.base, src));
const prependBase = (src: string) =>
prependForwardSlash(npath.posix.join(options.settings.config.base, src));
for (const chunk of outputs) {
if (
chunk.type === 'chunk' &&

View file

@ -257,13 +257,13 @@ describe('Content Collections', () => {
it('Includes base in links', async () => {
const html = await fixture.readFile('/docs/index.html');
const $ = cheerio.load(html);
expect($('link').attr('href')).to.satisfies(a => a.startsWith('/docs'))
expect($('link').attr('href')).to.satisfies((a) => a.startsWith('/docs'));
});
it('Includes base in hoisted scripts', async () => {
const html = await fixture.readFile('/docs/index.html');
const $ = cheerio.load(html);
expect($('script').attr('src')).to.satisfies(a => a.startsWith('/docs'))
expect($('script').attr('src')).to.satisfies((a) => a.startsWith('/docs'));
});
});
});