Files
probot/test/plugins/helper.js
Brandon Keepers e35028890a Improve GitHub logging (#351)
* 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
2017-11-27 10:18:58 -06:00

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})
}
}