mirror of
https://github.com/zhigang1992/probot.git
synced 2026-06-14 18:08:58 +08:00
15 lines
342 B
JavaScript
15 lines
342 B
JavaScript
// FIXME: move this to a test helper that can be used by other apps
|
|
|
|
const cacheManager = require('cache-manager')
|
|
const {createRobot} = require('../../src')
|
|
|
|
const cache = cacheManager.caching({store: 'memory'})
|
|
|
|
const app = jest.fn().mockReturnValue('test')
|
|
|
|
module.exports = {
|
|
createRobot () {
|
|
return createRobot({app, cache})
|
|
}
|
|
}
|