mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-07 12:47:30 -05:00
Update doom-project-root test
This commit is contained in:
@ -17,9 +17,8 @@
|
|||||||
(describe "project-root"
|
(describe "project-root"
|
||||||
(it "should resolve to the project's root"
|
(it "should resolve to the project's root"
|
||||||
(expect (doom-project-root doom-core-dir) :to-equal doom-emacs-dir))
|
(expect (doom-project-root doom-core-dir) :to-equal doom-emacs-dir))
|
||||||
(it "should resolve to the `default-directory'"
|
(it "should return nil if not in a project"
|
||||||
(expect (doom-project-root (expand-file-name "~"))
|
(expect (doom-project-root (expand-file-name "~")) :to-be nil)))
|
||||||
:to-equal (expand-file-name "~"))))
|
|
||||||
|
|
||||||
(describe "project-expand"
|
(describe "project-expand"
|
||||||
(it "expands to a path relative to the project root"
|
(it "expands to a path relative to the project root"
|
||||||
|
Reference in New Issue
Block a user