Closed oportocala closed 4 years ago
No tests for this but also I could not find tests for the callRenderer
, only mention is in the fixture
This needs a test. You can find the callRenderer
test here: https://github.com/sindresorhus/electron-better-ipc/blob/master/test/fixture/index.js And the logging is checked here: https://github.com/sindresorhus/electron-better-ipc/blob/master/test/fixture/test.js#L46
Thanks for the review @sindresorhus! Will add the test.
Bump :)
@sindresorhus I've run into a bit of roadblock with the test.
I can't figure out how to get an answer from the renderer inside on win.on('focus'
handler.
I tried to add a sleep
timer here thinking it doesn't have time to send a response before the test closes the Application
but that didn't work.
I also tried commenting out the application close, await t.context.app.stop();
but that didn't help either.
Thanks!
Closes https://github.com/sindresorhus/electron-better-ipc/issues/2