From d1bbc702036e27fa38667cc4e443edffe030ab33 Mon Sep 17 00:00:00 2001 From: clux Date: Tue, 19 Sep 2023 10:15:12 +0100 Subject: [PATCH] paramless tests Signed-off-by: clux --- test/yq.test.bats | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/yq.test.bats b/test/yq.test.bats index a179a54..fe61dbf 100644 --- a/test/yq.test.bats +++ b/test/yq.test.bats @@ -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"' +}