mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 22:38:26 +00:00
chore: Fix types in tests 33/N.
This commit is contained in:
@@ -10,6 +10,7 @@ const mocks = vi.hoisted(() => ({
|
||||
logDebug: vi.fn(),
|
||||
}));
|
||||
const { createService, shutdown, registerUnhandledRejectionHandler, logWarn, logDebug } = mocks;
|
||||
const getLoggerInfo = vi.fn();
|
||||
|
||||
const asString = (value: unknown, fallback: string) =>
|
||||
typeof value === "string" && value.trim() ? value : fallback;
|
||||
@@ -81,7 +82,7 @@ describe("gateway bonjour advertiser", () => {
|
||||
beforeEach(() => {
|
||||
vi.spyOn(logging, "getLogger").mockReturnValue({
|
||||
info: (...args: unknown[]) => getLoggerInfo(...args),
|
||||
});
|
||||
} as unknown as ReturnType<typeof logging.getLogger>);
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
|
||||
Reference in New Issue
Block a user