Skip to content

Commit

Permalink
create tests/sdbench.bats (fixes #2206) (#2207)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <dogi@users.noreply.github.com>
  • Loading branch information
rjpadilla and dogi authored Apr 29, 2021
1 parent 34b13cc commit cc11321
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
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.56",
"version": "1.25.57",
"remote": "4000",
"description": "Thin command-line interface for Raspberry Pi low level configuration.",
"main": "cli.sh",
Expand Down
12 changes: 12 additions & 0 deletions tests/sdbench.bats
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bats
load test-helper

@test "$clinom sdbench" {
run "${clicmd}" sdbench
assert_success && assert_output -p 'read' && assert_output -p 'write'
}

@test "$clinom sdbench (added extra arguments)" {
run "${clicmd}" sdbench foobar
assert_failure && assert_output -p 'Too many arguments.'
}

0 comments on commit cc11321

Please sign in to comment.