Skip to content

Commit 1424070

Browse files
Copilotnzakas
andcommitted
test: cover negated echo substitution
Co-authored-by: nzakas <38546+nzakas@users.noreply.github.com>
1 parent 874008a commit 1424070

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/rules/no-useless-echo.spec.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ ruleTester.run("no-useless-echo", rule as never, {
2323
"x=$(echo foo | tr a-z A-Z)",
2424
"x=$(echo foo; echo bar)",
2525
"x=$(echo foo > file)",
26+
"x=$(! echo foo)",
2627
],
2728
invalid: [
2829
{

0 commit comments

Comments
 (0)