Created
February 12, 2022 22:01
-
-
Save chico/916ed8b46bebc04b5d5dcb4513ca5f9a to your computer and use it in GitHub Desktop.
4 - Testing with sinon & mock-stdin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sinon.stub(process, 'exit') | |
... | |
assert(process.exit.called) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment