test: fix debounce mock typings

This commit is contained in:
Joey Krug 2026-03-14 17:14:38 -04:00
parent 063e06e17b
commit 0584b8dbc0
2 changed files with 5 additions and 2 deletions

View File

@ -14,6 +14,7 @@ type BlueBubblesDebounceEntry = {
export type BlueBubblesDebouncer = {
enqueue: (item: BlueBubblesDebounceEntry) => Promise<void>;
flushKey: (key: string) => Promise<boolean>;
flushAll: () => Promise<number>;
};
export type BlueBubblesDebounceRegistry = {

View File

@ -17,7 +17,8 @@ export function createFeishuRuntimeMockModule(): {
resolveInboundDebounceMs: () => number;
createInboundDebouncer: () => {
enqueue: () => Promise<void>;
flushKey: () => Promise<void>;
flushKey: () => Promise<boolean>;
flushAll: () => Promise<number>;
};
};
text: {
@ -33,7 +34,8 @@ export function createFeishuRuntimeMockModule(): {
resolveInboundDebounceMs: () => 0,
createInboundDebouncer: () => ({
enqueue: async () => {},
flushKey: async () => {},
flushKey: async () => false,
flushAll: async () => 0,
}),
},
text: {