Skip to content

Commit

Permalink
test(sort-objects): updates tests (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugop95 committed Jan 10, 2025
1 parent b21ffab commit 2324160
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/rules/sort-union-types.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1053,6 +1053,16 @@ describe(ruleName, () => {
| B
`,
output: [

Check failure on line 1055 in test/rules/sort-union-types.test.ts

View workflow job for this annotation

GitHub Actions / JS

Expected "output" to come before "code"
dedent`
type T =
(() => null)
| B
| Y
| Z
`,
dedent`
type T =
(() => null)
Expand Down Expand Up @@ -1108,6 +1118,15 @@ describe(ruleName, () => {
type T =
(() => null)
| Y
| Z
| "A"
`,
dedent`
type T =
(() => null)
| Y
| Z
Expand Down

0 comments on commit 2324160

Please sign in to comment.