test: tighten plugin service logger assertions · openclaw/openclaw@47a7559
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -51,11 +51,9 @@ function expectServiceContext(
|
51 | 51 | } |
52 | 52 | |
53 | 53 | function expectServiceLogger(ctx: OpenClawPluginServiceContext) { |
54 | | -expect(ctx.logger).toMatchObject({ |
55 | | -info: expect.any(Function), |
56 | | -warn: expect.any(Function), |
57 | | -error: expect.any(Function), |
58 | | -}); |
| 54 | +expect(typeof ctx.logger.info).toBe("function"); |
| 55 | +expect(typeof ctx.logger.warn).toBe("function"); |
| 56 | +expect(typeof ctx.logger.error).toBe("function"); |
59 | 57 | } |
60 | 58 | |
61 | 59 | function expectServiceContexts( |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。