How to test AJAX requests in integration by stubbing their responses.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea
src
test
.gitignore
Gruntfile.js
README.md
index.html
package.json

README.md

StubbingAjaxRequests

How to test AJAX requests in integration by stubbing their responses. This repo is the companion of the blog post Lightweight Stubbing of AJAX Requests in JavaScript by Nicole Rauch.

These commands are helpful:

  • npm install to install all dependencies
  • grunt prepare to be able to run the website (make sure to load index.html through a webbrowser because of CORS issues)
  • grunt test to run all tests