From 2908112dc4faf0ff2c4d6ea6e10887090d8b8d93 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 28 Sep 2018 21:25:18 -0400 Subject: [PATCH] Update doom-project-root test --- core/test/test-core-projects.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/test/test-core-projects.el b/core/test/test-core-projects.el index 30a577795..3dbd953d5 100644 --- a/core/test/test-core-projects.el +++ b/core/test/test-core-projects.el @@ -17,9 +17,8 @@ (describe "project-root" (it "should resolve to the project's root" (expect (doom-project-root doom-core-dir) :to-equal doom-emacs-dir)) - (it "should resolve to the `default-directory'" - (expect (doom-project-root (expand-file-name "~")) - :to-equal (expand-file-name "~")))) + (it "should return nil if not in a project" + (expect (doom-project-root (expand-file-name "~")) :to-be nil))) (describe "project-expand" (it "expands to a path relative to the project root"