Skip to content

Commit

Permalink
update tests/memory.bats (fixes #2183) (#2186)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <dogi@users.noreply.github.com>
  • Loading branch information
JLKwong and dogi authored Apr 27, 2021
1 parent 2b63128 commit 1f2d73d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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.54",
"version": "1.25.55",
"remote": "4000",
"description": "Thin command-line interface for Raspberry Pi low level configuration.",
"main": "cli.sh",
Expand Down
12 changes: 6 additions & 6 deletions tests/memory.bats
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@ load test-helper

@test "$clinom memory" {
run "${clicmd}" memory
assert_success && assert_output -p 'Your rpi'
assert_success && assert_output -p 'Your rpi has' && assert_output -p 'bytes of total memory with'
}

@test "$clinom memory gb" {
run "${clicmd}" memory gb
assert_success && assert_output -p 'Your rpi'
assert_success && assert_output -p 'Your rpi has' && assert_output -p 'gigabytes of total memory with'
}

@test "$clinom memory total" {
run "${clicmd}" memory total
assert_success
assert_success && assert_output --regexp '^[1-9][0-9]*$'
}

@test "$clinom memory used" {
run "${clicmd}" memory used
assert_success
assert_success && assert_output --regexp '^[1-9][0-9]*$'
}

@test "$clinom memory free mb" {
run "${clicmd}" memory free mb
assert_success
}
assert_success && assert_output --regexp '^[0-9]+$'
}

0 comments on commit 1f2d73d

Please sign in to comment.