Fix autoload-package::get-packages tests
This commit is contained in:
parent
a64b06aa77
commit
11feeaea5f
1 changed files with 5 additions and 0 deletions
|
@ -89,6 +89,11 @@
|
|||
(expect (doom-package-outdated-p 'xyz) :to-be nil)))
|
||||
|
||||
(describe "get-packages"
|
||||
(before-all
|
||||
;; In addition to `package-installed-p', `doom-package-installed-p' does
|
||||
;; file existence checks which won't work here, so we simplify it
|
||||
(spy-on #'doom-package-installed-p :and-call-fake #'package-installed-p))
|
||||
|
||||
(it "returns all packages"
|
||||
(expect (mapcar #'car (doom-get-packages))
|
||||
:to-have-same-items-as
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue