mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
[ci] format
This commit is contained in:
parent
b832cd1901
commit
dd24379f49
2 changed files with 4 additions and 4 deletions
|
@ -50,7 +50,7 @@ function virtualAppEntrypoint(options: ViteOptions) {
|
|||
getExports = async (id: string) => {
|
||||
const info = await this.load.call(this, { id });
|
||||
return info.exports ?? [];
|
||||
}
|
||||
};
|
||||
}
|
||||
},
|
||||
configureServer(server) {
|
||||
|
@ -58,7 +58,7 @@ function virtualAppEntrypoint(options: ViteOptions) {
|
|||
getExports = async (id: string) => {
|
||||
const mod = await server.ssrLoadModule(id);
|
||||
return Object.keys(mod) ?? [];
|
||||
}
|
||||
};
|
||||
}
|
||||
},
|
||||
resolveId(id: string) {
|
||||
|
|
|
@ -69,7 +69,7 @@ describe('App Entrypoint no export default (dev)', () => {
|
|||
});
|
||||
|
||||
it('loads during SSR', async () => {
|
||||
const html = await fixture.fetch('/').then(res => res.text());
|
||||
const html = await fixture.fetch('/').then((res) => res.text());
|
||||
const { document } = parseHTML(html);
|
||||
const bar = document.querySelector('#foo > #bar');
|
||||
expect(bar).not.to.be.undefined;
|
||||
|
@ -77,7 +77,7 @@ describe('App Entrypoint no export default (dev)', () => {
|
|||
});
|
||||
|
||||
it('loads svg components without transforming them to assets', async () => {
|
||||
const html = await fixture.fetch('/').then(res => res.text());
|
||||
const html = await fixture.fetch('/').then((res) => res.text());
|
||||
const { document } = parseHTML(html);
|
||||
const client = document.querySelector('astro-island svg');
|
||||
|
||||
|
|
Loading…
Reference in a new issue