From a77257ffebeba0046b74932eadecdb5dcc816b68 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Wed, 18 Oct 2023 13:34:52 +0200 Subject: [PATCH] Don't test the autofix for simple-import-sort/imports it's broken, see: https://github.com/ember-cli/eslint-plugin-ember/issues/1896 --- test/compare-test.js | 7 +++---- test/formatted-my-component.gjs | 4 ++-- test/my-component.gjs | 4 ++-- 3 files changed, 7 insertions(+), 8 deletions(-) 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; }