Skip to content

Commit

Permalink
update internet.bats (fixes #2217)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjpadilla committed Apr 23, 2021
1 parent d8ba03f commit 60a17da
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/internet.bats
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,17 @@ load test-helper
assert_success && assert_output -p 'true'
}

@test "$clinom internet (invalid argument)" {
run "${clicmd}" internet foobar
assert_failure && assert_output -p 'incorrect command'
}

@test "$clinom internet reverse" {
run "${clicmd}" internet reverse
assert_success
}

@test "$clinom internet reverse (too many arguments)" {
run "${clicmd}" internet reverse foobar
assert_failure && assert_output -p 'Too many arguments'
}

0 comments on commit 60a17da

Please sign in to comment.