Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp authored and actions-user committed Mar 29, 2022
1 parent f0bbd61 commit 7bf3bed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/vite-plugin-astro-server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async function writeWebResponse(res: http.ServerResponse, webResponse: Response)
const { status, headers, body } = webResponse;
res.writeHead(status, Object.fromEntries(headers.entries()));
if (body) {
if(body instanceof Readable) {
if (body instanceof Readable) {
body.pipe(res);
return;
} else {
Expand Down
4 changes: 2 additions & 2 deletions test/ssr-api-route.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ describe('API routes in SSR', () => {
it('Can POST to API routes', async () => {
const response = await fixture.fetch('/food.json', {
method: 'POST',
body: `some data`
})
body: `some data`,
});
expect(response.status).to.equal(200);
const text = await response.text();
expect(text).to.equal(`ok`);
Expand Down

0 comments on commit 7bf3bed

Please sign in to comment.