fix: new posts were not rendering css properly
This commit is contained in:
@@ -165,6 +165,7 @@ Here is an image: ![[camera-board.png]]
|
||||
assert.ok(fs.existsSync(writtenPath), "Post markdown file must be written to disk");
|
||||
|
||||
const writtenContent = fs.readFileSync(writtenPath, "utf-8");
|
||||
assert.match(writtenContent, /^layout:\s*layouts\/post\.njk$/m, "Layout must be injected into frontmatter when missing");
|
||||
assert.match(writtenContent, /\[Other Post\]\(\/posts\/other-post\/\)/, "Wikilink with alias must be translated");
|
||||
assert.match(writtenContent, /\[simple-link\]\(\/posts\/simple-link\/\)/, "Simple wikilink must be translated");
|
||||
assert.match(writtenContent, /!\[camera-board\.png\]\(\/assets\/images\/posts\/camera-board\.png\)/, "Attachment wikilink must be translated");
|
||||
|
||||
Reference in New Issue
Block a user