test: tighten plugin service logger assertions

This commit is contained in:
Peter Steinberger
2026-05-09 06:56:10 +01:00
parent 2945948a5e
commit 47a755969d

View File

@@ -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(