I am a final year student @ Imperial College London.

Apr
15
answered JavaScript equivalent to printf/string.format
Apr
9
comment How to test setTimeout with Mocha
I used the good old console.log to find out if it ever gets there and it didn't work. It was the first thing I tried. I couldn't figure it our so I simply changed my async library so I wouldn't have to use the setTimeout and now I'm ok. Still this issue is weird.
Apr
9
comment How to test setTimeout with Mocha
I updated my question with some more info. foo() is a function I call inside the async.parallel function.
Apr
9
revised How to test setTimeout with Mocha
added 545 characters in body
Apr
9
comment How to test setTimeout with Mocha
Thanks for taking the time @badsyntax. I just inserted a random setTimeout() in one of my routes just to double-check if it is ever called and again no luck. Timeouts do not fire in my code. Note: in my tests I use the timekeeper module to freeze time so I thought that that module was causing the problem so I removed it and still no luck. I cannot think of something else.
Apr
9
comment How to test setTimeout with Mocha
I'm using supertest
Apr
9
comment How to test setTimeout with Mocha
Yes exactly. It hangs at the setTimeout(). If I remove the timeout the code is executed just fine.
Apr
9
revised How to test setTimeout with Mocha
added 70 characters in body
Apr
9
asked How to test setTimeout with Mocha
Apr
3
accepted Performance difference between res.json() and res.end()
Apr
2
asked Performance difference between res.json() and res.end()
Feb
26
awarded Popular Question
Jan
30
comment How can I add a new method in the response object in Express?
That's what I thought too. Is this considered good practice in Node?
Jan
30
comment How can I add a new method in the response object in Express?
Yes but which option is the best?
Jan
30
asked How can I add a new method in the response object in Express?
Jan
7
awarded Famous Question
Oct
22
awarded Autobiographer
Oct
20
answered Git Push ERROR: Repository not found
Sep
29
comment UIWebView Delegate get MIME Type
Did you find a solution for this? If yes can you share it please?
Aug
21
awarded Civic Duty
1 2 3 4 5