Create the NAP-POW mock.
Simulation knobs and policy caps.
The mock service with an advance() control.
advance()
const pow = createMockPowService();pow.handleMessage('win', { type: 'pow.mine', id: 'm1', jobId: 'job-1', template: { kind: 1, content: 'gm' }, target: 12 }, console.log);pow.advance(2); // pushes pow.progress then pow.done Copy
const pow = createMockPowService();pow.handleMessage('win', { type: 'pow.mine', id: 'm1', jobId: 'job-1', template: { kind: 1, content: 'gm' }, target: 12 }, console.log);pow.advance(2); // pushes pow.progress then pow.done
Create the NAP-POW mock.