apim-mock
The mock utilities for APIM
Install
npm install apim-mock
Usage
var mock = require('apim-mock');
var result = mock.fakeBodyBySchema(schema);
API
-
fakeJSONP(data, callback)
-
fakeBodyByType(type, content)
-
fakeBodyBySchema(schema, mockUserCases, options)
-
fakeResponse(schema, mockUserCases, options)