backdrop
v0.0.3
Published
JSON Fixture generation and rendering
Downloads
74
Readme
Backdrop
JSON fixture generation for integration testing apps which consume multiple remote APIs.
Installation
npm install --save-dev backdrop
In your application you need to mount Backdrop#app
var Backdrop = require('backdrop');
fixtures = new Backdrop();
myApp.use('/backdrop', fixtures.app);
Usage
To create an API, call Backdrop#load
on the data and desired URL.
var Backdrop = require('backdrop');
fixtures = new Backdrop();
fixtures.load('your JSON', path_to_json);
Dependencies
- express