diff --git a/test/compare-test.js b/test/compare-test.js index bc31dfd..106cc8e 100644 --- a/test/compare-test.js +++ b/test/compare-test.js @@ -5,11 +5,10 @@ import process, { chdir, stdout } from "node:process"; const expectedEslintOutput = ` /path-prefix/my-component.gjs - 1:1 error Run autofix to sort these imports! simple-import-sort/imports - 16:4 error Expected property currentUser to come before property __GLIMMER_TEMPLATE sort-class-members/sort-class-members + 1:1 error Run autofix to sort these imports! simple-import-sort/imports -✖ 2 problems (2 errors, 0 warnings) - 2 errors and 0 warnings potentially fixable with the \`--fix\` option. +✖ 1 problem (1 error, 0 warnings) + 1 error and 0 warnings potentially fixable with the \`--fix\` option. `; const expectedTemplateLintOutput = ` diff --git a/test/formatted-my-component.gjs b/test/formatted-my-component.gjs index 7dbb366..618a045 100644 --- a/test/formatted-my-component.gjs +++ b/test/formatted-my-component.gjs @@ -3,6 +3,8 @@ import { inject as service } from "@ember/service"; import Component from "@glimmer/component"; export default class MyComponent extends Component { + @service currentUser; + - - @service currentUser; } diff --git a/test/my-component.gjs b/test/my-component.gjs index 06660f8..f2f9630 100644 --- a/test/my-component.gjs +++ b/test/my-component.gjs @@ -4,6 +4,8 @@ import Component from "@glimmer/component"; export default class MyComponent extends Component{ + @service currentUser; + - - @service currentUser; }