I would make a mock object that pretends to have the functions and callbacks of the SOAP server so that I can control what data I can get from it. And if you have to wait for multiple asynchronous calls to finish so that you can reach a conclusion or build a page I would simulate that with a setTimeout on each callback. What did you have in mind?
On Wednesday, May 7, 2014 4:11:03 AM UTC+4, Reza Razavipour wrote: > > I am writing a web server in node and express and most of the routes make > SOAP calls. > I want to write test cases for my routes. I have enough for my non SOAP > call features. > > So I need to have a mock SOAP server? How would that look? > > What are the suggestions for this problem? > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/6336a157-b2bc-4b71-82d2-d6c6fd305e5f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
