No, the unit test will pass because the mock function is never actually called.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2022-01-27 11:00:00 +0000
Seen: 16 times
Last updated: Jul 03 '21
How can I pass a value from App.js to an element in React JS?
How can one transfer the contents of "request.args" to another function?
How can I pass props to the Layout component in NextJs?
How can we pass arguments through a Sinon stub?
What are the type indications for quantities in MetPy?
How can I obtain compilation information per transaction unit using cmake?
How can arrow functions in React be exported for unit testing with Jest?