MCPcopy
hub / github.com/Unitech/pm2 / constructor

Method constructor

modules/pm2-io-agent/test/units/InteractorDaemon.mocha.js:232–245  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

230 axonRPCMock.mock({
231 Server: class Server {
232 constructor () {
233 return {
234 expose: (methods) => {
235 assert(_bindCalled === 1)
236 let methodsName = Object.keys(methods)
237 assert(methodsName.indexOf('kill') > -1)
238 assert(methodsName.indexOf('getInfos') > -1)
239 axonMock.reset()
240 axonRPCMock.reset()
241 cb()
242 done()
243 }
244 }
245 }
246 }
247 })
248 daemon.startRPC()

Callers

nothing calls this directly

Calls 4

cbFunction · 0.85
indexOfMethod · 0.80
doneFunction · 0.50
resetMethod · 0.45

Tested by

no test coverage detected