Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check that the expected number of directories are being returned #96

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Check that the expected number of directories are being returned by o…
…bsidian-list-all-directories
  • Loading branch information
jayemar committed Jul 12, 2024
commit 0240ca372015a16eeeb871073d1f8b85758079d3
8 changes: 8 additions & 0 deletions tests/test-obsidian.el
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
(defvar obsidian--test-number-of-visible-tags 6)
(defvar obsidian--test-number-of-notes 11)
(defvar obsidian--test-number-of-visible-notes 9)
(defvar obsidian--test-number-of-visible-directories 2)

(describe "check path setting"
(before-all (obsidian-specify-path obsidian--test-dir))
Expand Down Expand Up @@ -57,6 +58,13 @@
(it "check file count"
(expect (length (obsidian-list-all-files)) :to-equal obsidian--test-number-of-visible-notes)))

(describe "obsidian-list-all-directories"
(before-all (obsidian-specify-path obsidian--test-dir))
(after-all (obsidian-specify-path obsidian--test--original-dir))

(it "check directory count"
(expect (length (obsidian-list-all-directories)) :to-equal obsidian--test-number-of-visible-directories)))

(describe "obsidian-find-tags"
(before-all (obsidian-specify-path obsidian--test-dir))
(after-all (obsidian-specify-path obsidian--test--original-dir))
Expand Down
Loading