Skip to content

Commit

Permalink
馃毃
Browse files Browse the repository at this point in the history
  • Loading branch information
coyotte508 committed Dec 15, 2022
1 parent bc3b5d2 commit 09b685c
Showing 1 changed file with 13 additions and 19 deletions.
32 changes: 13 additions & 19 deletions packages/eslint-plugin/tests/rules/key-spacing.test.ts
Expand Up @@ -53,8 +53,7 @@ ruleTester.run('key-spacing', rule, {
options: [{ align: 'value', mode: 'minimum' }],
},
{
code:
`
code: `
interface X {
a: number;
prop: {
Expand All @@ -63,7 +62,7 @@ interface X {
},
abc: string
}
`,
`,
options: [{ align: 'value' }],
},
// align: colon
Expand Down Expand Up @@ -160,13 +159,13 @@ interface X {
},
{
code: 'interface X {\n a: number;\n // Some comment\n\n // interrupted in the middle\n abc: string\n};',
output: 'interface X {\n a: number;\n // Some comment\n\n // interrupted in the middle\n abc: string\n};',
output:
'interface X {\n a: number;\n // Some comment\n\n // interrupted in the middle\n abc: string\n};',
options: [{ align: 'value' }],
errors: [{ messageId: 'extraValue' }],
},
{
code:
`
code: `
interface X {
a: number;
prop: {
Expand All @@ -175,9 +174,8 @@ interface X {
},
abc: string
}
`,
output:
`
`,
output: `
interface X {
a: number;
prop: {
Expand All @@ -191,8 +189,7 @@ interface X {
errors: [{ messageId: 'missingValue' }],
},
{
code:
`
code: `
interface X {
a: number;
prop: {
Expand All @@ -201,9 +198,8 @@ interface X {
},
abc: string
}
`,
output:
`
`,
output: `
interface X {
a: number;
prop: {
Expand All @@ -217,8 +213,7 @@ interface X {
errors: [{ messageId: 'missingValue' }],
},
{
code:
`
code: `
interface X {
a: number;
prop: {
Expand All @@ -227,9 +222,8 @@ interface X {
},
abc: string
}
`,
output:
`
`,
output: `
interface X {
a: number;
prop: {
Expand Down

0 comments on commit 09b685c

Please sign in to comment.