1
0
mirror of https://github.com/janet-lang/janet synced 2025-10-26 05:07:41 +00:00

Check bundle listing before reinstall.

This commit is contained in:
Calvin Rose
2024-05-26 10:28:19 -05:00
parent f7c90bc1ff
commit 7efb39d608
2 changed files with 7 additions and 2 deletions

View File

@@ -62,6 +62,9 @@
(assert-no-error "sample-dep2"
(bundle/install "./examples/sample-dep2"))
(assert-no-error "sample-dep1" (bundle/install "./examples/sample-dep1"))
(assert (= 2 (length (bundle/list))) "bundles are listed correctly 0")
(assert-no-error "sample-dep2 reinstall" (bundle/reinstall "sample-dep2"))
(assert-no-error "sample-dep1 reinstall" (bundle/reinstall "sample-dep1" :auto-remove true))