test: require single oc-path diagnostic · openclaw/openclaw@b596c48
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
File tree
extensions/oc-path/src/oc-path/tests
| Original file line number | Diff line number | Diff line change |
|---|
@@ -34,12 +34,14 @@ description: never closes
|
34 | 34 | Body. |
35 | 35 | `; |
36 | 36 | const { diagnostics } = parseMd(raw); |
37 | | -expect(diagnostics).toContainEqual({ |
38 | | -line: 1, |
39 | | -message: "frontmatter opens with --- but never closes", |
40 | | -severity: "warning", |
41 | | -code: "OC_FRONTMATTER_UNCLOSED", |
42 | | -}); |
| 37 | +expect(diagnostics).toStrictEqual([ |
| 38 | +{ |
| 39 | +line: 1, |
| 40 | +message: "frontmatter opens with --- but never closes", |
| 41 | +severity: "warning", |
| 42 | +code: "OC_FRONTMATTER_UNCLOSED", |
| 43 | +}, |
| 44 | +]); |
43 | 45 | }); |
44 | 46 | |
45 | 47 | it("strips quotes from values", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。