Skip to content

Commit 30f45ae

Browse files
committed
fix tests
1 parent 03dd34d commit 30f45ae

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/obsidian/note_spec.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ describe("Note", function()
1818
end)
1919
it("should be able to be initialized from a README", function()
2020
local note = Note.from_file "README.md"
21-
assert.equals(note.id, "README.md")
21+
assert.equals(note.id, "README")
2222
assert.equals(#note.aliases, 1)
2323
assert.equals(note.aliases[1], "Obsidian.nvim")
2424
assert.equals(#note.tags, 0)
@@ -27,7 +27,7 @@ describe("Note", function()
2727
end)
2828
it("should be able to be initialized from a note w/o frontmatter", function()
2929
local note = Note.from_file "test_fixtures/notes/note_without_frontmatter.md"
30-
assert.equals(note.id, "test_fixtures/notes/note_without_frontmatter.md")
30+
assert.equals(note.id, "note_without_frontmatter")
3131
assert.equals(#note.aliases, 1)
3232
assert.equals(note.aliases[1], "Hey there")
3333
assert.equals(#note.tags, 0)

test_fixtures/notes/note_without_frontmatter_saved.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
id: "test_fixtures/notes/note_without_frontmatter.md"
2+
id: "note_without_frontmatter"
33
aliases:
44
- "Hey there"
55
tags: []

0 commit comments

Comments
 (0)