From cc9434da67cacc4701dd484535bc0fd3d4c37e69 Mon Sep 17 00:00:00 2001 From: Kristian Borgwarth <10348902@pm.me> Date: Sat, 18 Apr 2026 14:33:04 +0200 Subject: [PATCH] test(unit): fix fe_matter test --- test/test_unit/frontmatter_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/test_unit/frontmatter_test.go b/test/test_unit/frontmatter_test.go index 5056cc6..665d916 100644 --- a/test/test_unit/frontmatter_test.go +++ b/test/test_unit/frontmatter_test.go @@ -22,12 +22,13 @@ This is the content of the note.` assert.Equal(t, []string{"test", "note"}, result.Tags) } -func TestParseTags_MissingDelimiter_ReturnsError(t *testing.T) { +func TestParseTags_MissingDelimiter_ReturnsNil(t *testing.T) { input := `title: My Note tags: ["test", "note"] This is the content of the note.` - _, err := filehandling.ParseFrontMatter([]byte(input)) + val, err := filehandling.ParseFrontMatter([]byte(input)) - assert.ErrorContains(t, err, "missing front matter delimiter") + assert.NoError(t, err) + assert.Nil(t, val) }