I usually use sinon.js <http://sinonjs.org/> to mock my ajax calls and i write my asserts against a DOM which is restored for every test... .
2012/7/2 Evgeny Bogdanov <[email protected]> > > I don't have a clear answer how it is best to unit test client code that > has jQuery calls. > I mock jQuery calls, but it seems a bit of an overkill > What are your ways of doing/not-doing it? > -- 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
