[ci] yarn format

This commit is contained in:
natemoo-re 2021-05-28 22:03:05 +00:00 committed by GitHub Actions
parent 3d20623c32
commit 630c36f351
2 changed files with 3 additions and 3 deletions

View file

@ -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<string> {

View file

@ -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 && <span id="true" />} to render`);
assert.equal($('#zero').text(), '0', `Expected {0 && "VALUE"} to render "0"`);
assert.equal($('#false').length, 0, `Expected {false && <span id="false" />} not to render`);