Skip to content

Commit 2bf3f9a

Browse files
committed
more tests
1 parent 45eed26 commit 2bf3f9a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/fast/Unit tests/nvm_download

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ sleep 1 # wait for httpbin to start
2222
NVM_AUTH_HEADER="Bearer test-token"
2323
nvm_download "http://127.0.0.1/bearer" > /dev/null || die "nvm_download unable to send auth header"
2424
unset NVM_AUTH_HEADER
25+
26+
# nvm_download should fail when calling without auth header
27+
nvm_download "http://127.0.0.1/bearer" > /dev/null && die "nvm_download dies with no auth header"
2528
docker stop httpbin && docker rm httpbin
2629

2730
cleanup

0 commit comments

Comments
 (0)