test: fix debounce mock typings
This commit is contained in:
parent
063e06e17b
commit
0584b8dbc0
@ -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 = {
|
||||
|
||||
@ -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: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user