add sharness test for #4837
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
Steven Allen committed
Mar 19, 2018 at 16:00 UTC
3bb59efade58f08dc6ed75bbacaf0f2ae1ed2a53
1 file changed
+6
test/sharness/t0100-name.sh
+6
@@ -99,6 +99,12 @@ test_expect_success "'ipfs name publish' fails" '
99
printf '' | test_expect_code 1 ipfs name publish >publish_out 2>&1
100
'
101
102
+test_expect_success "'ipfs name publish --help' succeeds" '
103
+ PEERID=`ipfs id --format="<id>"` &&
104
+ test_check_peerid "${PEERID}" &&
105
+ ipfs name publish --help
106
+'
107
+
108
test_expect_success "publish output has the correct error" '
109
grep "argument \"ipfs-path\" is required" publish_out
110
'