Testing Flashcards
When the assertion passes, what happens?
Nothing
When the assertion fails, what happens?
It displays the options error message added to the assertion
Core Node.js module that provides methods for debugging
console
Node.js console class methods
console.log, console.error and console.warn
Node.js module that provides and API for implementing the stream interface
stream
Node.js module that provides various utilities that are used for supporting the Node.js internal APIs
util
What is used in testing to replace a dependency with an object in order to evaluate and verify the behavior of a function?
Mocking
What is used in testing to return a predetermined value instead of actual output?
Stubbing
What refers to a test that successfully passed only because of a flaw in the internal logic of the unit test?
False positive
What is a testing approach where the test focuses on the behavior of an application from an end user’s perspective?
Black box testing