/ajax-mock

Primary LanguageJavaScript

ajax-mock

This repository contains the source code of a utility library to mock XMLHttpRequest.

Overview

Demo

Development

Overview of Folder Structure

  • src contains the pre-build files of ajax-mock.
  • test contains the files for testing ajax-mock.
  • gulp contains the gulp task files.

Anatomy of ajax-mock

Here is the overview for the files under src folder:

Set up The Local Environment

Here are the steps:

  • Install gulp globally if you haven't done so.
  • Run npm install.
  • Run gulp to build the http-recorder.js and ajax-mock.js.

Usage

License

MIT