From c65bfc310ed85b61b192d3224402ea93e06ae378 Mon Sep 17 00:00:00 2001 From: Francis Gulotta Date: Sat, 29 Jul 2017 20:02:03 -0400 Subject: [PATCH] Show MockBinding.reset() in examples --- examples/mocking.js | 3 +++ 1 file changed, 3 insertions(+) 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();