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 eebb18f
Showing 1 changed file with 16 additions and 22 deletions.
38 changes: 16 additions & 22 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 @@ -186,13 +184,12 @@ interface X {
},
abc: string
}
`,
`,
options: [{ align: 'value' }],
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 @@ -212,13 +208,12 @@ interface X {
},
abc: string
}
`,
`,
options: [{ align: 'value' }],
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 All @@ -238,7 +232,7 @@ interface X {
},
abc: string
}
`,
`,
options: [{ align: 'value' }],
errors: [{ messageId: 'extraValue' }],
},
Expand Down

0 comments on commit eebb18f

Please sign in to comment.