mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-19 16:25:50 +00:00
test: require single oc-path diagnostic
This commit is contained in:
parent
36a4ed5956
commit
b596c484e4
1 changed files with 8 additions and 6 deletions
|
|
@ -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", () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue