Skip to content

Commit 7d630ae

Browse files
committed
tests: add fixedTemplates
1 parent 77caf51 commit 7d630ae

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

test/unit/rules/lint-prettier-test.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ test
2929
{
3030
config: true,
3131
template: "{{#my-component}}{{/my-component}}\n",
32+
fixedTemplate: "{{#my-component}}{{/my-component}}",
3233
result: {
3334
moduleId: "layout",
3435
message: "Delete `⏎`",
@@ -41,6 +42,7 @@ test
4142
{
4243
config: true,
4344
template: "test\n",
45+
fixedTemplate: "test",
4446
result: {
4547
moduleId: "layout",
4648
message: "Delete `⏎`",
@@ -56,6 +58,9 @@ test
5658
5759
test
5860
61+
{{/my-component}}`,
62+
fixedTemplate: `{{#my-component}}
63+
test
5964
{{/my-component}}`,
6065
result: {
6166
moduleId: "layout",
@@ -71,6 +76,9 @@ test
7176
template: `{{#my-component class="class1 class2"}}
7277
test
7378
79+
{{/my-component}}`,
80+
fixedTemplate: `{{#my-component class="class1 class2"}}
81+
test
7482
{{/my-component}}`,
7583
result: {
7684
moduleId: "layout",

0 commit comments

Comments
 (0)