diff options
Diffstat (limited to 'bin/tests')
-rw-r--r-- | bin/tests/data/empty_let_in.nix | 3 | ||||
-rw-r--r-- | bin/tests/snapshots/main__empty_let_in.snap | 8 |
2 files changed, 10 insertions, 1 deletions
diff --git a/bin/tests/data/empty_let_in.nix b/bin/tests/data/empty_let_in.nix index 54fee2a..6b916d9 100644 --- a/bin/tests/data/empty_let_in.nix +++ b/bin/tests/data/empty_let_in.nix | |||
@@ -6,7 +6,8 @@ | |||
6 | ) | 6 | ) |
7 | ( | 7 | ( |
8 | let | 8 | let |
9 | # don't match this, we have a comment | 9 | # don't fix this, we have a comment |
10 | # raise the lint though | ||
10 | in | 11 | in |
11 | null | 12 | null |
12 | ) | 13 | ) |
diff --git a/bin/tests/snapshots/main__empty_let_in.snap b/bin/tests/snapshots/main__empty_let_in.snap index df0911d..1aa0cb5 100644 --- a/bin/tests/snapshots/main__empty_let_in.snap +++ b/bin/tests/snapshots/main__empty_let_in.snap | |||
@@ -11,4 +11,12 @@ expression: "&out" | |||
11 | · │ | 11 | · │ |
12 | · ╰────────────── This let-in expression has no entries | 12 | · ╰────────────── This let-in expression has no entries |
13 | ───╯ | 13 | ───╯ |
14 | [W02] Warning: Useless let-in expression | ||
15 | ╭─[data/empty_let_in.nix:8:5] | ||
16 | │ | ||
17 | 8 │ ╭─▶ let | ||
18 | 12 │ ├─▶ null | ||
19 | · │ | ||
20 | · ╰────────────── This let-in expression has no entries | ||
21 | ────╯ | ||
14 | 22 | ||