Skip to content

Commit

Permalink
Don't test the autofix for simple-import-sort/imports
Browse files Browse the repository at this point in the history
  • Loading branch information
CvX committed Oct 18, 2023
1 parent 2fae658 commit a77257f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
7 changes: 3 additions & 4 deletions test/compare-test.js
Expand Up @@ -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 = `
Expand Down
4 changes: 2 additions & 2 deletions test/formatted-my-component.gjs
Expand Up @@ -3,6 +3,8 @@ import { inject as service } from "@ember/service";
import Component from "@glimmer/component";

export default class MyComponent extends Component {
@service currentUser;

<template>
{{#if (or @foo settings.bar)}}
<span class="boop">
Expand All @@ -12,6 +14,4 @@ export default class MyComponent extends Component {
{{/if}}
{{log "oops"}}
</template>

@service currentUser;
}
4 changes: 2 additions & 2 deletions test/my-component.gjs
Expand Up @@ -4,6 +4,8 @@ import Component from "@glimmer/component";


export default class MyComponent extends Component{
@service currentUser;

<template>
{{#if (or @foo settings.bar)}}
<span class='boop'>
Expand All @@ -12,6 +14,4 @@ export default class MyComponent extends Component{
{{/if}}
{{log "oops"}}
</template>

@service currentUser;
}

0 comments on commit a77257f

Please sign in to comment.