Skip to content

Commit

Permalink
test: fixes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hugop95 committed Oct 23, 2024
1 parent dad8a7b commit 10958bb
Showing 1 changed file with 3 additions and 36 deletions.
39 changes: 3 additions & 36 deletions test/sort-object-types.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ describe(ruleName, () => {
func<{ b: 'b'; a: 'aa' }>(/* ... */)
`,
output: dedent`
func<{ a: 'aa'; b: 'b' }>(/* ... */)
func<{ a: 'aa'; b: 'b'; }>(/* ... */)
`,
options: [options],
errors: [
Expand Down Expand Up @@ -310,17 +310,6 @@ describe(ruleName, () => {
}
`,
output: [
dedent`
type Type = {
b: 'bb'
a: 'aaa'
c: 'c'
d: {
f: 'f'
e: 'ee'
}
}
`,
dedent`
type Type = {
b: 'bb'
Expand Down Expand Up @@ -1127,7 +1116,7 @@ describe(ruleName, () => {
func<{ b: 'b'; a: 'aa' }>(/* ... */)
`,
output: dedent`
func<{ a: 'aa'; b: 'b' }>(/* ... */)
func<{ a: 'aa'; b: 'b'; }>(/* ... */)
`,
options: [options],
errors: [
Expand Down Expand Up @@ -1185,17 +1174,6 @@ describe(ruleName, () => {
}
`,
output: [
dedent`
type Type = {
b: 'bb'
a: 'aaa'
c: 'c'
d: {
f: 'f'
e: 'ee'
}
}
`,
dedent`
type Type = {
b: 'bb'
Expand Down Expand Up @@ -1721,7 +1699,7 @@ describe(ruleName, () => {
func<{ b: 'b'; a: 'aa' }>(/* ... */)
`,
output: dedent`
func<{ a: 'aa'; b: 'b' }>(/* ... */)
func<{ a: 'aa'; b: 'b'; }>(/* ... */)
`,
options: [options],
errors: [
Expand Down Expand Up @@ -1779,17 +1757,6 @@ describe(ruleName, () => {
}
`,
output: [
dedent`
type Type = {
b: 'bb'
a: 'aaa'
c: 'c'
d: {
f: 'f'
e: 'ee'
}
}
`,
dedent`
type Type = {
b: 'bb'
Expand Down

0 comments on commit 10958bb

Please sign in to comment.