depending on what you actually test you might try sinonjs. its a 
stub/spy/mock framework. you could mock your internals and preprogram 
expected behavior. i.E. function A, then function B then function C 3 times 
etc. 

http://sinonjs.org/docs/#mocks 

Am Mittwoch, 23. Januar 2013 05:34:18 UTC+1 schrieb taterbase:
>
> I've been trying to gear my development to be more test oriented and one 
> thing I've run into was not being able to test the going-ons of my app that 
> happen internally without effect to the outside world. When a request comes 
> in I would like to make sure certain things happen within the server but I 
> have no real way to check on that. Custom middlewares come to mind but 
> there are other instances as well. I've resorted to setting custom headers 
> when in testing environments that only get sent if what I wanted happened 
> but this is not ideal. I feel like I may be missing something obvious with 
> testing stuff like this, any tips?

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to