Skip to content

Commit 09b01ad

Browse files
committed
test: fix test fixtures
1 parent 496bec9 commit 09b01ad

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

tests/fixtures/rules/@typescript-eslint/no-unnecessary-condition/invalid/binary-expression01-errors.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22
line: 4
33
column: 13
44
suggestions: null
5+
- message: Unnecessary conditional, both sides of the expression are literal values.
6+
line: 8
7+
column: 9
8+
suggestions: null

tests/fixtures/rules/@typescript-eslint/no-unnecessary-condition/invalid/nullish-coalescing01-errors.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@
33
line: 5
44
column: 13
55
suggestions: null
6+
- message: Unnecessary conditional, left-hand side of `??` operator is always
7+
`null` or `undefined`.
8+
line: 9
9+
column: 9
10+
suggestions: null

tests/fixtures/rules/@typescript-eslint/no-unnecessary-condition/invalid/optional-chaining01-errors.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22
line: 4
33
column: 16
44
suggestions: null
5+
- message: Unnecessary optional chain on a non-nullish value.
6+
line: 8
7+
column: 12
8+
suggestions: null

tests/fixtures/rules/@typescript-eslint/no-unnecessary-condition/invalid/optional-chaining01-output.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
$: b = foo?.length
66
$: {
77
let bar: null | string = "abc"
8-
c = bar?.length
8+
c = bar.length
99
}
1010
</script>

0 commit comments

Comments
 (0)