javascript - Testing an AJAX API that uses session authentication with Jasmine? -


i have restful api provided django , tastypie protected sessionauthentication , djangoauthorization. how can jasmine authenticate or step through login page before each api test?

jasmin unit test framework. in unit test should test units without need of external dependencies. shouldn't run unit test again real api. mock out api sinon server.

if wanna run test real side , real api should choose integration test framework selenium or capserjs


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -