Skip to content

Commit

Permalink
bats - update shed-config-get usage test
Browse files Browse the repository at this point in the history
  • Loading branch information
siakhooi committed Apr 18, 2024
1 parent e31051d commit a925541
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/bats-test-scripts/shed-config-get/shed-config-get.bats
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ setup(){
load '../common-setup'
common_setup
}
@test "shed-config-get" {
run shed-config-get
cat_expected "usage" |assert_output -
}
@test "shed-config-get .xxx .yyy" {
run shed-config-get xxx yyy
cat_expected "usage" |assert_output -
}
@test "shed-config-get .shed-init.shed" {
run shed-config-get .shed-init.shed
echo "D" | assert_output -
Expand Down
8 changes: 8 additions & 0 deletions tests/bats-test-scripts/shed-config-get/shed_config-get.bats
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ setup(){
load '../common-setup'
common_setup
}
@test "shed config-get" {
run shed config-get
cat_expected "usage" |assert_output -
}
@test "shed config-get .xxx .yyy" {
run shed config-get xxx yyy
cat_expected "usage" |assert_output -
}
@test "shed config-get .shed-init.shed" {
run shed config-get .shed-init.shed
echo "D" | assert_output -
Expand Down
1 change: 1 addition & 0 deletions tests/bats-test-scripts/shed-config-get/usage.expected
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Usage: shed-config-get yamlPath

0 comments on commit a925541

Please sign in to comment.