summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar natemoo-re <natemoo-re@users.noreply.github.com> 2021-07-09 22:04:00 +0000
committerGravatar GitHub Actions <actions@github.com> 2021-07-09 22:04:00 +0000
commitd46746c34f84e46b7c2f6bd3fbb5258d4eaee6aa (patch)
treef621bfea6f3bceeb5ab7630baba520113e3c9c35
parent5077ff2e11f14af4cd88bc4b2d8f7b169bc52498 (diff)
downloadastro-d46746c34f84e46b7c2f6bd3fbb5258d4eaee6aa.tar.gz
astro-d46746c34f84e46b7c2f6bd3fbb5258d4eaee6aa.tar.zst
astro-d46746c34f84e46b7c2f6bd3fbb5258d4eaee6aa.zip
[ci] yarn format
-rw-r--r--packages/astro/src/compiler/codegen/index.ts2
-rw-r--r--packages/astro/test/astro-components.test.js1
2 files changed, 1 insertions, 2 deletions
diff --git a/packages/astro/src/compiler/codegen/index.ts b/packages/astro/src/compiler/codegen/index.ts
index fb3bd3451..36f5a0c56 100644
--- a/packages/astro/src/compiler/codegen/index.ts
+++ b/packages/astro/src/compiler/codegen/index.ts
@@ -716,7 +716,7 @@ async function compileHtml(enterNode: TemplateNode, state: CodegenState, compile
buffers[curr] += `h(${componentName}, ${attributes ? generateAttributes(attributes) : 'null'}`;
return;
} else if (!state.declarations.has(componentName) && !componentInfo && !isCustomElementTag(componentName)) {
- throw new Error(`Unable to render "${componentName}" because it is undefined\n ${state.filename}`)
+ throw new Error(`Unable to render "${componentName}" because it is undefined\n ${state.filename}`);
}
if (componentName === 'Markdown') {
const { $scope } = attributes ?? {};
diff --git a/packages/astro/test/astro-components.test.js b/packages/astro/test/astro-components.test.js
index aa5630584..0d9bd7ac0 100644
--- a/packages/astro/test/astro-components.test.js
+++ b/packages/astro/test/astro-components.test.js
@@ -26,7 +26,6 @@ Components('Astro components are able to render framework components', async ({
assert.not.type($svelte, 'undefined', 'Renders Svelte component');
});
-
Components('Allows Components defined in frontmatter', async ({ runtime }) => {
const result = await runtime.load('/frontmatter-component');
const html = result.contents;