diff --git a/examples/mocking.js b/examples/mocking.js index 35bd96e..a5d2413 100644 --- a/examples/mocking.js +++ b/examples/mocking.js @@ -40,3 +40,6 @@ port.on('open', () => { // To pretend to receive data (only works on open ports) port.binding.emitData(Buffer.from('Hi from my test!')); }); + +// When you're done you can destroy all ports with +MockBinding.reset();