Show MockBinding.reset() in examples

This commit is contained in:
Francis Gulotta 2017-07-29 20:02:03 -04:00
parent 4fc1404c8c
commit c65bfc310e

View file

@ -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();