express.io
express.io copied to clipboard
Writing tests for express.io
Hi, this isn't really an issue, just a lack of understanding on my part which I hope someone can help me with - i'm creating an app with express.io and using jasmine as my testing framework, I was wondering if someone could shine some light on the methodology behind writing a spec that tests the response of an app.io.route? I've followed this tut http://blog.drewolson.org/post/14684497867/ for writing tests for standard express routes however in my limited understanding of node in general, I can't figure out how to apply the logic behind the tut to testing an app.io route - any help would be greatly appreciated, thanks.
If you look at the basic test example at https://github.com/techpines/express.io/blob/master/test/basic.coffee, it gives examples on how to test the io routes. I'm working on a similar challenge as well and will use the express.io test suite as an example.
+1