Skip to content

Commit

Permalink
Fix test compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rlvoyer committed Feb 17, 2022
1 parent 4086731 commit 4fa760d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test.el
Original file line number Diff line number Diff line change
Expand Up @@ -380,11 +380,11 @@
(ert-deftest test-search-directory-returns-directory-not-found-if-dir-does-not-exist ()
(let ((notes-dir "foo/bar/baz"))
(should-error
(actual (mxtodo-searcher-search-directory notes-dir ".md" "^- ?\\[[Xx ]\\]"))
(mxtodo-searcher-search-directory notes-dir ".md" "^- ?\\[[Xx ]\\]")
:type 'directory-not-found)))

(ert-deftest test-search-directory-returns-path-error-if-dir-param-is-file ()
(let ((tmp-file (make-temp-file "notes")))
(should-error
(actual (mxtodo-searcher-search-directory tmp-file ".md" "^- ?\\[[Xx ]\\]"))
(mxtodo-searcher-search-directory tmp-file ".md" "^- ?\\[[Xx ]\\]")
:type 'path-is-not-a-directory)))

0 comments on commit 4fa760d

Please sign in to comment.