mirror of
https://github.com/zhigang1992/probot.git
synced 2026-06-15 10:27:43 +08:00
* Extract github client extensions into module * Add logging to extended GitHub client * Update test to check output * Inline GitHub App methods * Update node-github links * Remove src, which does not show up with LOG_FORMAT=simple anyway * Fix lint errors
15 lines
338 B
JavaScript
15 lines
338 B
JavaScript
// FIXME: move this to a test helper that can be used by other apps
|
|
|
|
const cacheManager = require('cache-manager')
|
|
const {createRobot} = require('../..')
|
|
|
|
const cache = cacheManager.caching({store: 'memory'})
|
|
|
|
const app = jest.fn().mockReturnValue('test')
|
|
|
|
module.exports = {
|
|
createRobot () {
|
|
return createRobot({app, cache})
|
|
}
|
|
}
|