index.js 455 B

12345678910111213141516171819202122232425
  1. const { serverStart } = require("express-mock-server");
  2. var sources = [
  3. require("./test.js"),
  4. require('./warn.js')
  5. ];
  6. // this is default configuration
  7. var opt_serverConfig = {
  8. port: 9999,
  9. controlApiUrl: ""
  10. };
  11. /**
  12. * Return strated Server instance
  13. function can be called are
  14. start
  15. close
  16. * @param {Array} sources
  17. * @param {?Object} opt_serverConfig
  18. * @return {Server}
  19. */
  20. serverStart(sources,opt_serverConfig);