0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-20 22:12:38 -05:00

[ci] format

This commit is contained in:
Nate Moore 2023-12-06 00:39:39 +00:00 committed by astrobot-houston
parent b832cd1901
commit dd24379f49
2 changed files with 4 additions and 4 deletions

View file

@ -50,7 +50,7 @@ function virtualAppEntrypoint(options: ViteOptions) {
getExports = async (id: string) => { getExports = async (id: string) => {
const info = await this.load.call(this, { id }); const info = await this.load.call(this, { id });
return info.exports ?? []; return info.exports ?? [];
} };
} }
}, },
configureServer(server) { configureServer(server) {
@ -58,7 +58,7 @@ function virtualAppEntrypoint(options: ViteOptions) {
getExports = async (id: string) => { getExports = async (id: string) => {
const mod = await server.ssrLoadModule(id); const mod = await server.ssrLoadModule(id);
return Object.keys(mod) ?? []; return Object.keys(mod) ?? [];
} };
} }
}, },
resolveId(id: string) { resolveId(id: string) {

View file

@ -69,7 +69,7 @@ describe('App Entrypoint no export default (dev)', () => {
}); });
it('loads during SSR', async () => { 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 { document } = parseHTML(html);
const bar = document.querySelector('#foo > #bar'); const bar = document.querySelector('#foo > #bar');
expect(bar).not.to.be.undefined; 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 () => { 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 { document } = parseHTML(html);
const client = document.querySelector('astro-island svg'); const client = document.querySelector('astro-island svg');