Skip to content

Commit

Permalink
Modify test vault so there are not files with duplicate names; add an…
Browse files Browse the repository at this point in the history
… empty file to vault
  • Loading branch information
jayemar committed Dec 2, 2024
1 parent 607825f commit 7478bb8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
1 change: 0 additions & 1 deletion README.org
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ In addition to the settings show in the example configurations above, some other
- obsidian-create-unfound-files-in-inbox :: whether to create files for unfound links in inbox or in same directory as file
- obsidian-backlinks-panel-position :: which side of the window to host backlinks panel: 'left or 'right
- obsidian-backlinks-panel-width :: width of the backlinks panel in characters
- obsidian-backlinks-filename-proportion :: Proportion of space to be used to display file name vs link text. A value of 1.0 will use 2 lines.

* Usage

Expand Down
8 changes: 4 additions & 4 deletions tests/test-obsidian.el
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ key4:
(links (ht-get (ht-get obsidian-vault-cache file) 'links)))
(expect (length (ht-keys links)) :to-equal 3)))

(it "subdir/1.md unique link count"
(let* ((file (obsidian-expand-file-name "subdir/1.md"))
(it "subdir/1-sub.md unique link count"
(let* ((file (obsidian-expand-file-name "subdir/1-sub.md"))
(links (ht-get (ht-get obsidian-vault-cache file) 'links)))
(expect (length (ht-keys links)) :to-equal 1)))

Expand Down Expand Up @@ -277,8 +277,8 @@ key4:
(links (ht-get (ht-get obsidian-vault-cache file) 'links)))
(expect (length (ht-keys links)) :to-equal 3)))

(it "subdir/1.md unique link count"
(let* ((file (obsidian-expand-file-name "subdir/1.md"))
(it "subdir/1-sub.md unique link count"
(let* ((file (obsidian-expand-file-name "subdir/1-sub.md"))
(links (ht-get (ht-get obsidian-vault-cache file) 'links)))
(expect (length (ht-keys links)) :to-equal 0)))

Expand Down
Empty file added tests/test_vault/empty-file.md
Empty file.
4 changes: 4 additions & 0 deletions tests/test_vault/subdir/1-sub.md
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
#Tag3 #Tag4


foo bar spam
[[2-sub with spaces and буквы]]
5 changes: 0 additions & 5 deletions tests/test_vault/subdir/1.md

This file was deleted.

0 comments on commit 7478bb8

Please sign in to comment.