mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-12 23:20:42 +00:00
test: tighten plugin service logger assertions
This commit is contained in:
@@ -51,11 +51,9 @@ function expectServiceContext(
|
||||
}
|
||||
|
||||
function expectServiceLogger(ctx: OpenClawPluginServiceContext) {
|
||||
expect(ctx.logger).toMatchObject({
|
||||
info: expect.any(Function),
|
||||
warn: expect.any(Function),
|
||||
error: expect.any(Function),
|
||||
});
|
||||
expect(typeof ctx.logger.info).toBe("function");
|
||||
expect(typeof ctx.logger.warn).toBe("function");
|
||||
expect(typeof ctx.logger.error).toBe("function");
|
||||
}
|
||||
|
||||
function expectServiceContexts(
|
||||
|
||||
Reference in New Issue
Block a user