Skip to content

Commit

Permalink
Remove trailing closing curly bracket
Browse files Browse the repository at this point in the history
  • Loading branch information
dcyriller committed Jun 25, 2019
1 parent 4c7e4ff commit f70375e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions rules/lint-prettier.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ module.exports = class Prettier extends Rule {
case DELETE:
message = `Delete \`${showInvisibles(
difference.deleteText
)}}\``;
)}\``;
break;
case REPLACE:
message = `Replace \`${showInvisibles(
difference.deleteText
)}\` with \`${difference.insertText}}\``;
)}\` with \`${difference.insertText}\``;
break;
}

Expand Down
8 changes: 4 additions & 4 deletions test/unit/rules/lint-prettier-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ generateRuleTests({
path: "test/unit/files/valid/dummy.hbs",
result: {
moduleId: "layout.hbs",
message: "Delete `⏎}`",
message: "Delete `⏎`",
line: 1,
column: 34,
source: "{{#my-component}}{{/my-component}}\n"
Expand All @@ -35,7 +35,7 @@ generateRuleTests({
path: "test/unit/files/valid/block.hbs",
result: {
moduleId: "layout.hbs",
message: "Delete `⏎}`",
message: "Delete `⏎`",
line: 1,
column: 4,
source: "test\n"
Expand All @@ -47,7 +47,7 @@ generateRuleTests({
result: {
moduleId: "layout.hbs",
message:
"Replace `⏎⏎test⏎⏎{{/my-component}}⏎` with `test{{/my-component}}}`",
"Replace `⏎⏎test⏎⏎{{/my-component}}⏎` with `test{{/my-component}}`",
line: 1,
column: 17,
source: "{{#my-component}}\n\ntest\n\n{{/my-component}}\n"
Expand All @@ -58,7 +58,7 @@ generateRuleTests({
path: "test/unit/files/invalid/lines.hbs",
result: {
moduleId: "layout.hbs",
message: "Replace `⏎{{/my-component}}⏎` with `{{/my-component}}}`",
message: "Replace `⏎{{/my-component}}⏎` with `{{/my-component}}`",
line: 2,
column: 7,
source:
Expand Down

0 comments on commit f70375e

Please sign in to comment.