Skip to content

Commit

Permalink
Bump ember-template-recast to v6.1.4 (#2853)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bert De Block committed Mar 28, 2023
1 parent b4433e9 commit 17ef5a2
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 37 deletions.
72 changes: 36 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"ci-info": "^3.8.0",
"date-fns": "^2.29.2",
"ember-template-imports": "^3.4.1",
"ember-template-recast": "^6.1.3",
"ember-template-recast": "^6.1.4",
"eslint-formatter-kakoune": "^1.0.0",
"find-up": "^6.3.0",
"fuse.js": "^6.5.3",
Expand Down
22 changes: 22 additions & 0 deletions test/unit/rules/attribute-order-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,28 @@ generateRuleTests({
`);
},
},
{
template: '<Link @b="b" @a="a">Foo</Link>',
fixedTemplate: '<Link @a="a" @b="b">Foo</Link>',
verifyResults(results) {
expect(results).toMatchInlineSnapshot(`
[
{
"column": 13,
"endColumn": 19,
"endLine": 1,
"filePath": "layout.hbs",
"isFixable": true,
"line": 1,
"message": "Argument @a=\\"a\\" is not alphabetized",
"rule": "attribute-order",
"severity": 2,
"source": "@a=\\"a\\"",
},
]
`);
},
},
],

error: [
Expand Down

0 comments on commit 17ef5a2

Please sign in to comment.