summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar matthewp <matthewp@users.noreply.github.com> 2022-10-03 15:46:38 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2022-10-03 15:46:38 +0000
commit88163e02baacf43faadca9e58929d7065af9caa6 (patch)
tree16910b71f7b19f5c57ffddf9c6159b6aba1a21ca
parentee8dd424fda90688ff3f3ed4e736fb6151d9b422 (diff)
downloadastro-88163e02baacf43faadca9e58929d7065af9caa6.tar.gz
astro-88163e02baacf43faadca9e58929d7065af9caa6.tar.zst
astro-88163e02baacf43faadca9e58929d7065af9caa6.zip
[ci] format
-rw-r--r--packages/astro/src/runtime/server/render/common.ts2
-rw-r--r--packages/astro/test/benchmark/simple/astro.config.mjs2
-rw-r--r--packages/astro/test/benchmark/simple/server.mjs4
-rw-r--r--packages/astro/test/benchmark/simple/src/components/Layout.astro2
-rw-r--r--packages/astro/test/benchmark/simple/src/pages/index.astro2
5 files changed, 6 insertions, 6 deletions
diff --git a/packages/astro/src/runtime/server/render/common.ts b/packages/astro/src/runtime/server/render/common.ts
index 421546a46..3aac428cf 100644
--- a/packages/astro/src/runtime/server/render/common.ts
+++ b/packages/astro/src/runtime/server/render/common.ts
@@ -47,7 +47,7 @@ export function stringifyChunk(result: SSRResult, chunk: string | RenderInstruct
export class HTMLParts {
public parts: string;
constructor() {
- this.parts = ''
+ this.parts = '';
}
append(part: string | HTMLBytes | RenderInstruction, result: SSRResult) {
if (ArrayBuffer.isView(part)) {
diff --git a/packages/astro/test/benchmark/simple/astro.config.mjs b/packages/astro/test/benchmark/simple/astro.config.mjs
index da503f3ba..ec4a0bec0 100644
--- a/packages/astro/test/benchmark/simple/astro.config.mjs
+++ b/packages/astro/test/benchmark/simple/astro.config.mjs
@@ -3,5 +3,5 @@ import nodejs from '@astrojs/node';
export default defineConfig({
output: 'server',
- adapter: nodejs()
+ adapter: nodejs(),
});
diff --git a/packages/astro/test/benchmark/simple/server.mjs b/packages/astro/test/benchmark/simple/server.mjs
index e5844d60c..3fde151e1 100644
--- a/packages/astro/test/benchmark/simple/server.mjs
+++ b/packages/astro/test/benchmark/simple/server.mjs
@@ -2,8 +2,8 @@ import http from 'http';
import { handler } from './dist/server/entry.mjs';
const listener = (req, res) => {
- handler(req, res, err => {
- if(err) {
+ handler(req, res, (err) => {
+ if (err) {
res.writeHead(500);
res.end(err.toString());
} else {
diff --git a/packages/astro/test/benchmark/simple/src/components/Layout.astro b/packages/astro/test/benchmark/simple/src/components/Layout.astro
index c8a65f26e..7224ba686 100644
--- a/packages/astro/test/benchmark/simple/src/components/Layout.astro
+++ b/packages/astro/test/benchmark/simple/src/components/Layout.astro
@@ -1,6 +1,6 @@
<html>
<head>
- <title>{ Astro.props.title }</title>
+ <title>{Astro.props.title}</title>
</head>
<body>
<slot />
diff --git a/packages/astro/test/benchmark/simple/src/pages/index.astro b/packages/astro/test/benchmark/simple/src/pages/index.astro
index ee287144f..932ce3ea8 100644
--- a/packages/astro/test/benchmark/simple/src/pages/index.astro
+++ b/packages/astro/test/benchmark/simple/src/pages/index.astro
@@ -5,5 +5,5 @@ const name = 'world';
<Layout title={`Index page`}>
<h1>index page</h1>
- <h2>Hello { name }</h2>
+ <h2>Hello {name}</h2>
</Layout>