12333
diff --git a/tests/lib/rules/no-negated-v-if-condition.js b/tests/lib/rules/no-negated-v-if-condition.js
index fc0e02d0d..0b97c7909 100644
--- a/tests/lib/rules/no-negated-v-if-condition.js
+++ b/tests/lib/rules/no-negated-v-if-condition.js
@@ -153,24 +153,19 @@ tester.run('no-negated-v-if-condition', rule, {
Alternative
`,
+ output: `
+
+ Alternative
+ Content
+
+ `,
errors: [
{
messageId: 'negatedCondition',
line: 3,
column: 20,
endLine: 3,
- endColumn: 24,
- suggestions: [
- {
- messageId: 'fixNegatedCondition',
- output: `
-
- Alternative
- Content
-
- `
- }
- ]
+ endColumn: 24
}
]
},
@@ -182,24 +177,19 @@ tester.run('no-negated-v-if-condition', rule, {
Otherwise
`,
+ output: `
+
+ Otherwise
+ Negated condition
+
+ `,
errors: [
{
messageId: 'negatedCondition',
line: 3,
column: 20,
endLine: 3,
- endColumn: 33,
- suggestions: [
- {
- messageId: 'fixNegatedCondition',
- output: `
-
- Otherwise
- Negated condition
-
- `
- }
- ]
+ endColumn: 33
}
]
},
@@ -211,24 +201,19 @@ tester.run('no-negated-v-if-condition', rule, {
Equal
`,
+ output: `
+
+ Equal
+ Not equal
+
+ `,
errors: [
{
messageId: 'negatedCondition',
line: 3,
column: 20,
endLine: 3,
- endColumn: 26,
- suggestions: [
- {
- messageId: 'fixNegatedCondition',
- output: `
-
- Equal
- Not equal
-
- `
- }
- ]
+ endColumn: 26
}
]
},
@@ -240,24 +225,19 @@ tester.run('no-negated-v-if-condition', rule, {
Strictly equal
`,
+ output: `
+
+ Strictly equal
+ Strictly not equal
+
+ `,
errors: [
{
messageId: 'negatedCondition',
line: 3,
column: 20,
endLine: 3,
- endColumn: 27,
- suggestions: [
- {
- messageId: 'fixNegatedCondition',
- output: `
-
- Strictly equal
- Strictly not equal
-
- `
- }
- ]
+ endColumn: 27
}
]
},
@@ -270,25 +250,20 @@ tester.run('no-negated-v-if-condition', rule, {
Default
`,
+ output: `
+
+ First
+ Default
+ Second
+
+ `,
errors: [
{
messageId: 'negatedCondition',
line: 4,
column: 26,
endLine: 4,
- endColumn: 30,
- suggestions: [
- {
- messageId: 'fixNegatedCondition',
- output: `
-
- First
- Default
- Second
-
- `
- }
- ]
+ endColumn: 30
}
]
},
@@ -301,25 +276,20 @@ tester.run('no-negated-v-if-condition', rule, {
Default
`,
+ output: `
+
+ First
+ Default
+ Second
+
+ `,
errors: [
{
messageId: 'negatedCondition',
line: 4,
column: 26,
endLine: 4,
- endColumn: 28,
- suggestions: [
- {
- messageId: 'fixNegatedCondition',
- output: `
-
- First
- Default
- Second
-
- `
- }
- ]
+ endColumn: 28
}
]
},
@@ -331,24 +301,19 @@ tester.run('no-negated-v-if-condition', rule, {
span contents
`,
+ output: `
+
+ span contents
+ div contents
+
+ `,
errors: [
{
messageId: 'negatedCondition',
line: 3,
column: 20,
endLine: 3,
- endColumn: 30,
- suggestions: [
- {
- messageId: 'fixNegatedCondition',
- output: `
-
- span contents
- div contents
-
- `
- }
- ]
+ endColumn: 30
}
]
},
@@ -366,17 +331,7 @@ tester.run('no-negated-v-if-condition', rule, {
`,
- errors: [
- {
- messageId: 'negatedCondition',
- line: 3,
- column: 20,
- endLine: 3,
- endColumn: 26,
- suggestions: [
- {
- messageId: 'fixNegatedCondition',
- output: `
+ output: `
Nested if content
@@ -387,57 +342,28 @@ tester.run('no-negated-v-if-condition', rule, {
Inner else content