Skip to content

Commit

Permalink
paramless tests
Browse files Browse the repository at this point in the history
Signed-off-by: clux <[email protected]>
  • Loading branch information
clux committed Sep 19, 2023
1 parent 297538a commit d1bbc70
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/yq.test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,10 @@
run yq 'include "k"; . | gvk' -r -L$PWD/test/modules < test/grafana.yaml
echo "$output" && echo "$output" | grep 'apps/v1.Deployment'
}

@test "paramless" {
run yq -y <<< '["foo"]'
echo "$output" && echo "$output" | grep '\- foo'
run yq <<< '"bar"'
echo "$output" && echo "$output" | grep '"bar"'
}

0 comments on commit d1bbc70

Please sign in to comment.