summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Emanuele Stoppa <ematipico@users.noreply.github.com> 2024-06-05 12:08:21 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2024-06-05 12:08:21 +0000
commit6bcbd15f86cddeb45b982e9d12fb2da35b9ff0e1 (patch)
treeb8ed1c25c5d6724aa592b82c7a9b22d197aaad92
parent40b0b4d1e4ef1aa95d5e9011652444b855ab0b9c (diff)
downloadastro-6bcbd15f86cddeb45b982e9d12fb2da35b9ff0e1.tar.gz
astro-6bcbd15f86cddeb45b982e9d12fb2da35b9ff0e1.tar.zst
astro-6bcbd15f86cddeb45b982e9d12fb2da35b9ff0e1.zip
[ci] format
-rw-r--r--packages/astro/src/core/render-context.ts8
-rw-r--r--packages/astro/test/rewrite.test.js9
2 files changed, 6 insertions, 11 deletions
diff --git a/packages/astro/src/core/render-context.ts b/packages/astro/src/core/render-context.ts
index 30b3c7319..22d259470 100644
--- a/packages/astro/src/core/render-context.ts
+++ b/packages/astro/src/core/render-context.ts
@@ -556,11 +556,7 @@ export class RenderContext {
keepalive: oldRequest.keepalive,
// https://fetch.spec.whatwg.org/#dom-request-duplex
// @ts-expect-error It isn't part of the types, but undici accepts it and it allows to carry over the body to a new request
- duplex: "half"
- })
+ duplex: 'half',
+ });
}
-
}
-
-
-
diff --git a/packages/astro/test/rewrite.test.js b/packages/astro/test/rewrite.test.js
index 6f572eb91..3808a9181 100644
--- a/packages/astro/test/rewrite.test.js
+++ b/packages/astro/test/rewrite.test.js
@@ -61,7 +61,6 @@ describe('Dev reroute', () => {
assert.equal($('h1').text(), '404: Not found');
});
-
});
describe('Build reroute', () => {
@@ -191,13 +190,13 @@ describe('SSR reroute', () => {
it('should pass the POST data from one page to another', async () => {
const request = new Request('http://example.com/post/post-a', {
- method: "POST",
+ method: 'POST',
body: JSON.stringify({
- email: "example@example.com",
+ email: 'example@example.com',
}),
headers: {
- "content-type": "application/json"
- }
+ 'content-type': 'application/json',
+ },
});
const response = await app.render(request);
const html = await response.text();