From 84e15d0de5adcf033e704d1a57cb2998edacb6b9 Mon Sep 17 00:00:00 2001 From: Gisela Martinez Date: Thu, 11 Aug 2022 10:51:26 -0300 Subject: [PATCH 1/2] test(version): Add test for flag interaction --- bats_test/version/version.bats | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bats_test/version/version.bats b/bats_test/version/version.bats index 7a106fe2..cc69bdce 100644 --- a/bats_test/version/version.bats +++ b/bats_test/version/version.bats @@ -19,3 +19,8 @@ EXPECTED_VERSION=$(jq -r '.version' ./package.json) run -0 yarn ardrive tx-status -V [[ "$output" = "$EXPECTED_VERSION" ]] } + +@test "interaction with other flags" { + run -0 yarn ardrive --help --version + [[ "$output" = "$EXPECTED_VERSION" ]] +} \ No newline at end of file From 8a17b46e18ea289160b368a9a8e67f6feca6c54b Mon Sep 17 00:00:00 2001 From: Gisela Martinez Date: Thu, 11 Aug 2022 11:09:42 -0300 Subject: [PATCH 2/2] fix(test name): Format title to resemble others --- bats_test/version/version.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bats_test/version/version.bats b/bats_test/version/version.bats index cc69bdce..cedbb978 100644 --- a/bats_test/version/version.bats +++ b/bats_test/version/version.bats @@ -20,7 +20,7 @@ EXPECTED_VERSION=$(jq -r '.version' ./package.json) [[ "$output" = "$EXPECTED_VERSION" ]] } -@test "interaction with other flags" { +@test "'ardrive --version' overrides other flags" { run -0 yarn ardrive --help --version [[ "$output" = "$EXPECTED_VERSION" ]] } \ No newline at end of file