Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
setExceptionHandler () {}
}
class Ws {
listen (httpServer) {
assert.property(httpServer, 'once')
}
}
class BaseHandler {
handle () {}
report () {}
}
fold.ioc.fake('Adonis/Exceptions/BaseExceptionHandler', () => BaseHandler)
fold.ioc.fake('Adonis/Addons/Ws', () => new Ws())
fold.ioc.fake('Adonis/Src/Server', () => new Server())
fold.ioc.fake('Adonis/Src/Env', () => new Env())
ignitor.appRoot(path.join(__dirname, './'))
await ignitor.wsServer().fireHttpServer()
})
group.beforeEach(() => {
hooks.before.clear()
hooks.after.clear()
fold.ioc._autoloads = {}
fold.ioc._aliases = {}
clearRequire(path.join(__dirname, 'start/app.js'))
clearRequire(path.join(__dirname, 'package.json'))
fold.ioc.restore()
fold.ioc.fake('Adonis/Src/Exception', () => {
return { bind () {} }
})
process.removeAllListeners('unhandledRejection')
})
group.beforeEach(() => {
hooks.before.clear()
hooks.after.clear()
fold.ioc._autoloads = {}
fold.ioc._aliases = {}
clearRequire(path.join(__dirname, 'start/app.js'))
clearRequire(path.join(__dirname, 'package.json'))
fold.ioc.restore()
fold.ioc.fake('Adonis/Src/Exception', () => {
return { bind () {} }
})
process.removeAllListeners('unhandledRejection')
})