How to use the probot.Probot function in probot

To help you get started, we’ve selected a few probot examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github philschatz / project-bot / test / index.spec.js View on Github external
beforeEach(() => {
    nock.cleanAll()
    probot = new Probot({ githubToken: 'faketoken' })
    const app = probot.load(projectBot)
    // just return a test token
    app.app = () => 'test'
  })