Skip to content

Commit

Permalink
upgrade tests/container.bats (fixes #2179) (#2180)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
JLKwong and dogi authored Apr 15, 2021
1 parent 366263e commit cd0672f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@treehouses/cli",
"version": "1.25.37",
"version": "1.25.38",
"remote": "4000",
"description": "Thin command-line interface for Raspberry Pi low level configuration.",
"main": "cli.sh",
Expand Down
7 changes: 6 additions & 1 deletion tests/container.bats
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ load test-helper

@test "$clinom container" {
run "${clicmd}" container
assert_success
assert_success && ( assert_output -p 'balena' || assert_output -p 'none' || assert_output -p 'docker' )
}

@test "$clinom container balena" {
Expand All @@ -20,3 +20,8 @@ load test-helper
run "${clicmd}" container docker
assert_success && assert_output -p 'Success'
}

@test "$clinom container foo (invalid container)" {
run "${clicmd}" container asdf
assert_output -p 'Error: only'
}

0 comments on commit cd0672f

Please sign in to comment.