parent
8b68db5163
commit
4b2c2d9903
@ -17,6 +17,10 @@ jasmine-ajax is currently compatible with any library that uses XMLHttpRequest.
|
|||||||
|
|
||||||
Installing
|
Installing
|
||||||
----------
|
----------
|
||||||
|
#### NPM ####
|
||||||
|
Install `jasmine-ajax` from NPM via `npm install --save-dev jasmine-ajax`; you can then `require('jasmine-ajax)` inside your test-suite and access it via the `jasmine` global.
|
||||||
|
|
||||||
|
#### Browser ####
|
||||||
Download [mock-ajax.js](https://raw.github.com/jasmine/jasmine-ajax/master/lib/mock-ajax.js) and add it to your project. If you are using the jasmine gem, be sure the location you put mock-ajax.js is included in your src_files path in jasmine.yml. If you are using Jasmine standalone, make sure you add it to your spec runner.
|
Download [mock-ajax.js](https://raw.github.com/jasmine/jasmine-ajax/master/lib/mock-ajax.js) and add it to your project. If you are using the jasmine gem, be sure the location you put mock-ajax.js is included in your src_files path in jasmine.yml. If you are using Jasmine standalone, make sure you add it to your spec runner.
|
||||||
|
|
||||||
Setup
|
Setup
|
||||||
|
Loading…
Reference in New Issue
Block a user