0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00

[ci] format

This commit is contained in:
Fredrik Löwenhamn 2024-10-30 11:56:26 +00:00 committed by astrobot-houston
parent ea85546487
commit e2056c218e
2 changed files with 3 additions and 3 deletions

View file

@ -92,7 +92,7 @@ async function handleAction(param, path, context) {
headers.set('Content-Length', '0'); headers.set('Content-Length', '0');
} }
} }
const rawResult = await fetch(`${import.meta.env.BASE_URL.replace(/\/$/, "")}/_actions/${path}`, { const rawResult = await fetch(`${import.meta.env.BASE_URL.replace(/\/$/, '')}/_actions/${path}`, {
method: 'POST', method: 'POST',
body, body,
headers, headers,

View file

@ -470,7 +470,7 @@ it('Base path should be used', async () => {
const fixture = await loadFixture({ const fixture = await loadFixture({
root: './fixtures/actions/', root: './fixtures/actions/',
adapter: testAdapter(), adapter: testAdapter(),
base: "/base" base: '/base',
}); });
const devServer = await fixture.startDevServer(); const devServer = await fixture.startDevServer();
const formData = new FormData(); const formData = new FormData();
@ -487,7 +487,7 @@ it('Base path should be used', async () => {
const data = devalue.parse(await res.text()); const data = devalue.parse(await res.text());
assert.equal(data.channel, 'bholmesdev'); assert.equal(data.channel, 'bholmesdev');
assert.equal(data.comment, 'Hello, World!'); assert.equal(data.comment, 'Hello, World!');
await devServer.stop() await devServer.stop();
}); });
/** /**