mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-05 12:37:33 -05:00
Fix autoload-package::get-packages tests
This commit is contained in:
@ -89,6 +89,11 @@
|
|||||||
(expect (doom-package-outdated-p 'xyz) :to-be nil)))
|
(expect (doom-package-outdated-p 'xyz) :to-be nil)))
|
||||||
|
|
||||||
(describe "get-packages"
|
(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"
|
(it "returns all packages"
|
||||||
(expect (mapcar #'car (doom-get-packages))
|
(expect (mapcar #'car (doom-get-packages))
|
||||||
:to-have-same-items-as
|
:to-have-same-items-as
|
||||||
|
Reference in New Issue
Block a user