mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-16 18:34:18 +00:00
test: require single oc-path diagnostic
This commit is contained in:
@@ -34,12 +34,14 @@ description: never closes
|
||||
Body.
|
||||
`;
|
||||
const { diagnostics } = parseMd(raw);
|
||||
expect(diagnostics).toContainEqual({
|
||||
line: 1,
|
||||
message: "frontmatter opens with --- but never closes",
|
||||
severity: "warning",
|
||||
code: "OC_FRONTMATTER_UNCLOSED",
|
||||
});
|
||||
expect(diagnostics).toStrictEqual([
|
||||
{
|
||||
line: 1,
|
||||
message: "frontmatter opens with --- but never closes",
|
||||
severity: "warning",
|
||||
code: "OC_FRONTMATTER_UNCLOSED",
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
it("strips quotes from values", () => {
|
||||
|
||||
Reference in New Issue
Block a user