From 60a17da191929afd8ba02a8a8488816fe8b2b37b Mon Sep 17 00:00:00 2001 From: rjpadilla Date: Sat, 24 Apr 2021 00:15:31 +0300 Subject: [PATCH] update internet.bats (fixes #2217) --- tests/internet.bats | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/internet.bats b/tests/internet.bats index 975882cdfa..feaf2d14fd 100755 --- a/tests/internet.bats +++ b/tests/internet.bats @@ -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' } \ No newline at end of file