Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico authored and astrobot-houston committed Oct 30, 2024
1 parent ea85546 commit e2056c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/astro/templates/actions.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ async function handleAction(param, path, context) {
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',
body,
headers,
Expand Down
4 changes: 2 additions & 2 deletions packages/astro/test/actions.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ it('Base path should be used', async () => {
const fixture = await loadFixture({
root: './fixtures/actions/',
adapter: testAdapter(),
base: "/base"
base: '/base',
});
const devServer = await fixture.startDevServer();
const formData = new FormData();
Expand All @@ -487,7 +487,7 @@ it('Base path should be used', async () => {
const data = devalue.parse(await res.text());
assert.equal(data.channel, 'bholmesdev');
assert.equal(data.comment, 'Hello, World!');
await devServer.stop()
await devServer.stop();
});

/**
Expand Down

0 comments on commit e2056c2

Please sign in to comment.