express.io icon indicating copy to clipboard operation
express.io copied to clipboard

Writing tests for express.io

Open keyboSlice opened this issue 11 years ago • 2 comments

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.

keyboSlice avatar Dec 16 '13 13:12 keyboSlice

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.

wscoble avatar Apr 23 '14 04:04 wscoble

+1

timmyg avatar Aug 06 '14 18:08 timmyg