mirror of
https://github.com/Such-Software/wownerogue.git
synced 2026-10-18 14:51:26 +02:00
24 lines
965 B
JavaScript
24 lines
965 B
JavaScript
const WalletRPCService = require('../src/payments/walletRPCService');
|
|
|
|
// Minimal debugManager mock
|
|
const debugManagerMock = { CONSOLE_LOGGING: false };
|
|
|
|
describe('WalletRPCService interface', () => {
|
|
test('exposes expected methods', () => {
|
|
const svc = new WalletRPCService(debugManagerMock);
|
|
expect(typeof svc.initialize).toBe('function');
|
|
expect(typeof svc.rpcCall).toBe('function');
|
|
expect(typeof svc.createPaymentRequest).toBe('function');
|
|
expect(typeof svc.checkPaymentStatus).toBe('function');
|
|
expect(typeof svc.startPaymentMonitoring).toBe('function');
|
|
expect(typeof svc.stopPaymentMonitoring).toBe('function');
|
|
expect(typeof svc.processBatchPayouts).toBe('function'); // newly added stub
|
|
});
|
|
|
|
test('processBatchPayouts stub returns processed:0', async () => {
|
|
const svc = new WalletRPCService(debugManagerMock);
|
|
const res = await svc.processBatchPayouts();
|
|
expect(res).toEqual({ processed: 0 });
|
|
});
|
|
});
|