abdulapopoola.com
How function spies work in JavaScript
If you write unit tests, then you likely use a testing framework and might have come across spies. If you don’t write unit tests, please take a quick pause and promise yourself to always writ…