@botonic/plugin-flow-builder
Version:
Botonic plugin for **Hubtype Flow Builder**: run and bridge flow-driven logic from bots on the **current** line.
12 lines • 505 B
JavaScript
import { vi } from 'vitest';
import { CaptureUserInputClient, } from '../../services/capture-user-input-client';
export function mockCaptureUserInputResponse(success, value) {
vi.mocked(CaptureUserInputClient).mockImplementation(function () {
return {
getCaptureUserInputResponse: vi.fn(() => Promise.resolve(success
? { success: true, value: value }
: { success: false })),
};
});
}
//# sourceMappingURL=capture-user-input-client.js.map