Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
start() {
log('starting mb server...')
return mountebank.create(this.options).then(server => {
log(`mb listening on port ${this.options.port}`)
this.shutdown = () => new Promise(resolve =>
server.close(resolve)
)
return this
})
}