Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could also assert partial output for the 6 categories of internet reverse.

}

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