Public Access
Normalize scalar frontmatter lists
PR and Push Build/Test / build-and-test (push) Successful in 8m49s
PR and Push Build/Test / build-and-test (push) Successful in 8m49s
This commit is contained in:
@@ -105,6 +105,36 @@ public sealed class MeetingNoteStoreTests
|
||||
Assert.Equal(userNotes, reloaded.UserNotes);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task ReadConvertsScalarListFrontmatterToSingleItemLists()
|
||||
{
|
||||
var (vaultRoot, store) = CreateStore();
|
||||
var notePath = Path.Combine(vaultRoot, "Meetings", "Notes", "manual.md");
|
||||
Directory.CreateDirectory(Path.GetDirectoryName(notePath)!);
|
||||
await File.WriteAllTextAsync(
|
||||
notePath,
|
||||
"""
|
||||
---
|
||||
title: Manual frontmatter
|
||||
start_time: "2026-05-19T10:00:00.0000000+02:00"
|
||||
end_time: ""
|
||||
attendees: Ada
|
||||
projects: Meeting Assistant
|
||||
transcript: "[[../Transcripts/manual-transcript|Transcript]]"
|
||||
assistant_context: "[[../Assistant Context/manual-context|Assistant Context]]"
|
||||
summary: "[[../Summaries/manual-summary|Summary]]"
|
||||
---
|
||||
|
||||
User notes.
|
||||
""");
|
||||
|
||||
var loaded = await store.ReadAsync(notePath, CancellationToken.None);
|
||||
|
||||
Assert.Equal(["Ada"], loaded.Frontmatter.Attendees);
|
||||
Assert.Equal(["Meeting Assistant"], loaded.Frontmatter.Projects);
|
||||
Assert.Equal("User notes.", loaded.UserNotes);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ActionLinkEscapesSummaryFileName()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user