Skip to content

Commit c65bfc3

Browse files
committed
Show MockBinding.reset() in examples
1 parent 4fc1404 commit c65bfc3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/mocking.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,6 @@ port.on('open', () => {
4040
// To pretend to receive data (only works on open ports)
4141
port.binding.emitData(Buffer.from('Hi from my test!'));
4242
});
43+
44+
// When you're done you can destroy all ports with
45+
MockBinding.reset();

0 commit comments

Comments
 (0)