diff --git a/packages/astro/src/content/vite-plugin-content-assets.ts b/packages/astro/src/content/vite-plugin-content-assets.ts index c09162177e..3a48edfc1c 100644 --- a/packages/astro/src/content/vite-plugin-content-assets.ts +++ b/packages/astro/src/content/vite-plugin-content-assets.ts @@ -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' && diff --git a/packages/astro/test/content-collections.test.js b/packages/astro/test/content-collections.test.js index 148fa01cad..4de67ca6e6 100644 --- a/packages/astro/test/content-collections.test.js +++ b/packages/astro/test/content-collections.test.js @@ -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')); }); }); });