fix: not starting
This commit is contained in:
@@ -24,6 +24,26 @@ test("Linked articles: accepts an article's list when every name identifies anot
|
||||
});
|
||||
});
|
||||
|
||||
test("Linked articles: accepts Obsidian's serialized internal Markdown links", () => {
|
||||
const posts = [
|
||||
{
|
||||
inputPath: "src/posts/project-crimson-week-7.md",
|
||||
data: {
|
||||
title: "Project Crimson Week 7",
|
||||
linkedArticles: ["[Project Crimson Week 6](/posts/project-crimson-week-6/)"]
|
||||
}
|
||||
},
|
||||
{
|
||||
inputPath: "src/posts/project-crimson-week-6.md",
|
||||
url: "/posts/project-crimson-week-6/",
|
||||
data: { title: "Project Crimson Week 6" }
|
||||
}
|
||||
];
|
||||
|
||||
assert.doesNotThrow(() => validateLinkedArticles(posts));
|
||||
assert.deepEqual(resolveLinkedArticles(posts, posts[0].data.linkedArticles), [posts[1]]);
|
||||
});
|
||||
|
||||
test("Linked articles: rejects a non-list frontmatter value", () => {
|
||||
assert.throws(
|
||||
() => {
|
||||
|
||||
Reference in New Issue
Block a user