I am using jasmine-node for doing unit testing. I did below code for mocking Date.now()
spyOn(Date, 'now').andReturn(1387636363717); //always return a fixed time
Then I tried to run jasmine-node spec/
but it stopped working with no output. I could not figure out what is the reason.
I have written a tiny test. It works just fine. Using jasmin-node in version 1.11.0.
Where is your Date.now function used then?