I basically copy-pasted the Mocha.js Base reporter to build a custom reporter.
Now for some reason, inside the on "end"
callback, Date.now()
returns 0
,
while new Date()
returns a date for Thu Jan 01 1970 01:00:00 GMT+0100 (CET)
.
And I really don’t get it. This language is driving me nuts.
Hope someone knows what’s going on here.