summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthewp@users.noreply.github.com> 2023-12-12 18:30:01 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2023-12-12 18:30:01 +0000
commit4137927e3cee5f557267d93ff99e1750169c55c1 (patch)
tree743e82e83a82865a1b61103d52904458ce3a6af1
parent546d92c862d08c69751039511a12c92ae38184c2 (diff)
downloadastro-4137927e3cee5f557267d93ff99e1750169c55c1.tar.gz
astro-4137927e3cee5f557267d93ff99e1750169c55c1.tar.zst
astro-4137927e3cee5f557267d93ff99e1750169c55c1.zip
[ci] format
-rw-r--r--packages/astro/src/vite-plugin-fileurl/index.ts6
-rw-r--r--packages/astro/test/astro-basic.test.js1
2 files changed, 3 insertions, 4 deletions
diff --git a/packages/astro/src/vite-plugin-fileurl/index.ts b/packages/astro/src/vite-plugin-fileurl/index.ts
index e046ce6a8..4a14323a0 100644
--- a/packages/astro/src/vite-plugin-fileurl/index.ts
+++ b/packages/astro/src/vite-plugin-fileurl/index.ts
@@ -4,10 +4,10 @@ export default function vitePluginFileURL({}): VitePlugin {
return {
name: 'astro:vite-plugin-file-url',
resolveId(source, importer) {
- if(source.startsWith('file://')) {
+ if (source.startsWith('file://')) {
const rest = source.slice(7);
return this.resolve(rest, importer);
}
- }
- }
+ },
+ };
}
diff --git a/packages/astro/test/astro-basic.test.js b/packages/astro/test/astro-basic.test.js
index 96cecc730..78c3a0ed5 100644
--- a/packages/astro/test/astro-basic.test.js
+++ b/packages/astro/test/astro-basic.test.js
@@ -158,7 +158,6 @@ describe('Astro basics', () => {
expect(content2).to.be.ok;
});
-
it('allows file:// urls as module specifiers', async () => {
const html = await fixture.readFile('/fileurl/index.html');
const $ = cheerio.load(html);