From 630c36f3516bb500ca6a4bfe84c972b1093b8177 Mon Sep 17 00:00:00 2001 From: natemoo-re Date: Fri, 28 May 2021 22:03:05 +0000 Subject: [PATCH] [ci] yarn format --- packages/astro/src/compiler/codegen/index.ts | 2 +- packages/astro/test/astro-expr.test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/astro/src/compiler/codegen/index.ts b/packages/astro/src/compiler/codegen/index.ts index 9271ab50a6..fa00e8c99d 100644 --- a/packages/astro/src/compiler/codegen/index.ts +++ b/packages/astro/src/compiler/codegen/index.ts @@ -422,7 +422,7 @@ function dedent(str: string) { return !arr || !first ? str : str.replace(new RegExp(`^[ \\t]{0,${first}}`, 'gm'), ''); } -const FALSY_EXPRESSIONS = new Set(['false','null','undefined','void 0']); +const FALSY_EXPRESSIONS = new Set(['false', 'null', 'undefined', 'void 0']); /** Compile page markup */ async function compileHtml(enterNode: TemplateNode, state: CodegenState, compileOptions: CompileOptions): Promise { diff --git a/packages/astro/test/astro-expr.test.js b/packages/astro/test/astro-expr.test.js index 04a005aaef..485d58d9b6 100644 --- a/packages/astro/test/astro-expr.test.js +++ b/packages/astro/test/astro-expr.test.js @@ -61,9 +61,9 @@ Expressions('Allows multiple JSX children in mustache', async ({ runtime }) => { Expressions('Does not render falsy values using &&', async ({ runtime }) => { const result = await runtime.load('/falsy'); if (result.error) throw new Error(result.error); - + const $ = doc(result.contents); - + assert.equal($('#true').length, 1, `Expected {true && } to render`); assert.equal($('#zero').text(), '0', `Expected {0 && "VALUE"} to render "0"`); assert.equal($('#false').length, 0, `Expected {false && } not to render`);