[ci] format
This commit is contained in:
parent
b2f0210c40
commit
64b24f0663
2 changed files with 8 additions and 8 deletions
|
@ -150,7 +150,7 @@ function buildManifest(
|
|||
|
||||
scripts.push({
|
||||
type: 'external',
|
||||
value: joinBase(src)
|
||||
value: joinBase(src),
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -18,10 +18,10 @@ describe('Using Astro.request in SSR', () => {
|
|||
name: 'inject-script',
|
||||
hooks: {
|
||||
'astro:config:setup'({ injectScript }) {
|
||||
injectScript('page', 'import "/src/scripts/inject-script.js";')
|
||||
}
|
||||
}
|
||||
}
|
||||
injectScript('page', 'import "/src/scripts/inject-script.js";');
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
vite: {
|
||||
build: {
|
||||
|
@ -74,7 +74,7 @@ describe('Using Astro.request in SSR', () => {
|
|||
const html = await response.text();
|
||||
const $ = cheerioLoad(html);
|
||||
|
||||
for(const el of $('script')) {
|
||||
for (const el of $('script')) {
|
||||
const scriptSrc = $(el).attr('src');
|
||||
expect(scriptSrc.startsWith('/subpath/')).to.equal(true);
|
||||
|
||||
|
|
Loading…
Reference in a new issue