aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorCalvin Rose <calsrose@gmail.com>2024-10-05 12:37:23 -0500
committerCalvin Rose <calsrose@gmail.com>2024-10-05 12:37:23 -0500
commit3d9302808812ebd7a736f6ae892cab27d724fa79 (patch)
tree19ed77f75aa02011229ad113b62fc8007160c4e9 /test
parentFix bundle/install with :check true installation failure. (diff)
Test bundle
Diffstat (limited to 'test')
-rw-r--r--test/suite-bundle.janet5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/suite-bundle.janet b/test/suite-bundle.janet
index a0f4c031..f860c1fd 100644
--- a/test/suite-bundle.janet
+++ b/test/suite-bundle.janet
@@ -117,6 +117,11 @@
(assert (= 0 (length (bundle/list))) "bundles are listed correctly 7")
(assert (= 0 (length (bundle/topolist))) "bundles are listed correctly 8")
+# Try installing a bundle that fails check
+(assert-error "bad test" (bundle/install "./examples/sample-bad-bundle" :check true))
+(assert (= 0 (length (bundle/list))) "check failure 0")
+(assert (= 0 (length (bundle/topolist))) "check failure 1")
+
(rmrf syspath)
(end-suite)