mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 20:11:23 +00:00
test(discord): fix updated test harness mocks
This commit is contained in:
@@ -28,7 +28,14 @@ vi.mock("../../agents/identity.js", async (importOriginal) => {
|
||||
};
|
||||
});
|
||||
|
||||
export function getSlackSlashMocks() {
|
||||
type SlashHarnessMocks = {
|
||||
dispatchMock: ReturnType<typeof vi.fn>;
|
||||
readAllowFromStoreMock: ReturnType<typeof vi.fn>;
|
||||
upsertPairingRequestMock: ReturnType<typeof vi.fn>;
|
||||
resolveAgentRouteMock: ReturnType<typeof vi.fn>;
|
||||
};
|
||||
|
||||
export function getSlackSlashMocks(): SlashHarnessMocks {
|
||||
return mocks;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user