mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-17 12:11:20 +00:00
test: isolate discord model picker dispatch mock
This commit is contained in:
@@ -248,9 +248,9 @@ function createBoundThreadBindingManager(params: {
|
||||
|
||||
function createDispatchSpy() {
|
||||
const dispatchSpy = vi
|
||||
.spyOn(dispatcherModule, "dispatchReplyWithDispatcher")
|
||||
.fn<typeof dispatcherModule.dispatchReplyWithDispatcher>()
|
||||
.mockResolvedValue({} as never);
|
||||
nativeCommandTesting.setDispatchReplyWithDispatcher(dispatcherModule.dispatchReplyWithDispatcher);
|
||||
nativeCommandTesting.setDispatchReplyWithDispatcher(dispatchSpy);
|
||||
return dispatchSpy;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user