Skip to content

Commit

Permalink
Show MockBinding.reset() in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
reconbot committed Jul 30, 2017
1 parent 4fc1404 commit c65bfc3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/mocking.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

0 comments on commit c65bfc3

Please sign in to comment.