@vital-ai/haley-mock

0.0.9 • Public • Published

haley-js-mock-npm

develop

domain requirement:

domain files should put in the directory: vitalservice/domains. vitalservice is the directory that at the same level of node_modules.

mock handler requirement.

handlers should live in file haley-service-mock/index.js as an array. The array should be export. examples of code of index.js

const MockApiForHomePageEntriesHandler = require('../handlers/homePageEntries_Handler').mockAPI;
const MockApiSearchHandler = require('../handlers/search_Handler').mockAPI;

const handlers = [
    {id: 'mock home page entries', handler: MockApiForHomePageEntriesHandler},
    {id: 'mock search page', handler: MockApiSearchHandler},
]

module.exports = handlers;

Package Sidebar

Install

npm i @vital-ai/haley-mock

Weekly Downloads

1

Version

0.0.9

License

MIT

Unpacked Size

333 kB

Total Files

19

Last publish

Collaborators

  • soh523
  • hadfield
  • dkobylarz
  • weijunzhai