Feb 11, 2017

arogachev

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.

Comments (0)

No comments yet.