Closed cauboy closed 7 years ago
Hey, thanks a lot for this repo. It really helps. One question: Is there actually a way to test event listeners on the port object. How would one test the following code?
Chrome.runtime.onConnect.addListener(function(port) { port.onDisconnect(function() { console.log('Port disconnected'); }); });
Cheers. Clemens
@cauboy, hi!
Unfortunately, we does not support port objects. Feel free to create pull request.
Thought so, just wanted to be sure :)
Hey, thanks a lot for this repo. It really helps. One question: Is there actually a way to test event listeners on the port object. How would one test the following code?
Cheers. Clemens