Skip to content

Commit 48b14e6

Browse files
committed
Add test for 193
1 parent 288435e commit 48b14e6

4 files changed

Lines changed: 61 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<template>
2+
<h1>what</h1>
3+
</template>
4+
5+
const two =
6+
<template>
7+
{{#if true}}
8+
true
9+
{{/if}}
10+
</template>
11+
12+
const three =
13+
<template>
14+
{{if true 'true'}}
15+
16+
</template>

tests/unit-tests/__snapshots__/format.test.ts.snap

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,21 @@ exports[`format > config > default > it formats ../cases/gjs/simple.gjs 1`] = `
274274
"
275275
`;
276276
277+
exports[`format > config > default > it formats ../cases/gjs/simple-with-tag.gjs 1`] = `
278+
"<template>
279+
<h1>what</h1>
280+
</template>
281+
282+
const two = <template>
283+
{{#if true}}
284+
true
285+
{{/if}}
286+
</template>;
287+
288+
const three = <template>{{if true "true"}}</template>;
289+
"
290+
`;
291+
277292
exports[`format > config > default > it formats ../cases/gts/complex.gts 1`] = `
278293
"import { on } from "@ember/modifier";
279294
import { service } from "@ember/service";

tests/unit-tests/config/__snapshots__/semi-false.test.ts.snap

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,21 @@ exports[`config > semi: false > it formats ../cases/gjs/simple.gjs 1`] = `
274274
"
275275
`;
276276
277+
exports[`config > semi: false > it formats ../cases/gjs/simple-with-tag.gjs 1`] = `
278+
"<template>
279+
<h1>what</h1>
280+
</template>
281+
282+
const two = <template>
283+
{{#if true}}
284+
true
285+
{{/if}}
286+
</template>
287+
288+
const three = <template>{{if true "true"}}</template>
289+
"
290+
`;
291+
277292
exports[`config > semi: false > it formats ../cases/gts/complex.gts 1`] = `
278293
"import { on } from "@ember/modifier"
279294
import { service } from "@ember/service"

tests/unit-tests/config/__snapshots__/template-export-default.test.ts.snap

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,21 @@ exports[`config > templateExportDefault: true > it formats ../cases/gjs/simple.g
274274
"
275275
`;
276276
277+
exports[`config > templateExportDefault: true > it formats ../cases/gjs/simple-with-tag.gjs 1`] = `
278+
"export default <template>
279+
<h1>what</h1>
280+
</template>
281+
282+
const two = <template>
283+
{{#if true}}
284+
true
285+
{{/if}}
286+
</template>;
287+
288+
const three = <template>{{if true "true"}}</template>;
289+
"
290+
`;
291+
277292
exports[`config > templateExportDefault: true > it formats ../cases/gts/complex.gts 1`] = `
278293
"import { on } from "@ember/modifier";
279294
import { service } from "@ember/service";

0 commit comments

Comments
 (0)