ThorstenHans / ngx-electron

A simple Angular wrapper for electron's Renderer API
MIT License
429 stars 86 forks source link

Mock for testing #20

Closed tadeork closed 5 years ago

tadeork commented 6 years ago

Is there any lib or code to use as mock for the call .ipcRendered.send('node-function', data)?

bampakoa commented 6 years ago

@tadeork you can use Observables to mock ipcRendered.send command. Check out this gist, I hope it helps.