apim-mock

0.1.13 • Public • Published

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)

Readme

Keywords

Package Sidebar

Install

npm i apim-mock

Weekly Downloads

1

Version

0.1.13

License

ISC

Unpacked Size

52.5 kB

Total Files

18

Last publish

Collaborators

  • wuhuiyao
  • xhong