Testing jQuery's AJAX "script" and "jsonp" requests using Sinon.JS' fake server

During writing tests for yii.js in Yii 2 framework I faced with problem of testing AJAX requests with types scriptand jsonp. I use Sinon.JS as a stubbing library, it has a wonderful feature called Fake server which comes in handy exactly for testing AJAX.

http://arogachev.com/blog/2017/01/25/1028-testing-jquery-ajax-script-jsonp-using-sinon.html

Comments

Signup in order to comment.