Fix autoload-package::get-packages tests

This commit is contained in:
Henrik Lissner 2018-09-09 10:09:45 -04:00
parent a64b06aa77
commit 11feeaea5f
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -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