Showing posts with label Unit Test. Show all posts
Showing posts with label Unit Test. Show all posts

Wednesday, March 9, 2016

Sunday, December 27, 2015

Unit test - Jasmine - Spied function was actually called but test result says it's never called

Today I spent entire morning to figure out WTF is going on in my unit-test.

Long story short, I spied on a function, I saw the debug log coming from the function, which means it definitely has been called, but the test result kept saying that it was never called.