0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-31 23:31:30 -05:00

[ci] format

This commit is contained in:
Emanuele Stoppa 2024-06-05 12:08:21 +00:00 committed by astrobot-houston
parent 40b0b4d1e4
commit 6bcbd15f86
2 changed files with 6 additions and 11 deletions

View file

@ -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',
});
}
}

View file

@ -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();