{"action":"created","issue":{"url":"https://api.github.com/repos/probot/probot/issues/715","repository_url":"https://api.github.com/repos/probot/probot","labels_url":"https://api.github.com/repos/probot/probot/issues/715/labels{/name}","comments_url":"https://api.github.com/repos/probot/probot/issues/715/comments","events_url":"https://api.github.com/repos/probot/probot/issues/715/events","html_url":"https://github.com/probot/probot/issues/715","id":366098154,"node_id":"MDU6SXNzdWUzNjYwOTgxNTQ=","number":715,"title":"TypeError: this.app is not a function when running unit tests","user":{"login":"jleach","id":390891,"node_id":"MDQ6VXNlcjM5MDg5MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/390891?v=4","gravatar_id":"","url":"https://api.github.com/users/jleach","html_url":"https://github.com/jleach","followers_url":"https://api.github.com/users/jleach/followers","following_url":"https://api.github.com/users/jleach/following{/other_user}","gists_url":"https://api.github.com/users/jleach/gists{/gist_id}","starred_url":"https://api.github.com/users/jleach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jleach/subscriptions","organizations_url":"https://api.github.com/users/jleach/orgs","repos_url":"https://api.github.com/users/jleach/repos","events_url":"https://api.github.com/users/jleach/events{/privacy}","received_events_url":"https://api.github.com/users/jleach/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-10-02T22:05:21Z","updated_at":"2018-10-16T05:01:26Z","closed_at":null,"author_association":"NONE","body":"## Bug Report\r\n\r\nI modelled my unit test after what I saw here `https://probot.github.io/docs/testing/`. My test runs fine but I get some unhandled promise rejection warnings. Any tips on how to fix this would be great.\r\n\r\n**Current Behavior**\r\n```\r\n(node:95396) UnhandledPromiseRejectionWarning: TypeError: this.app is not a function\r\n(node:95396) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of\r\nan async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)\r\n(node:95396) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that\r\nare not handled will terminate the Node.js process with a non-zero exit code.\r\n```\r\n\r\n**Expected behavior/code**\r\n\r\nA clean run with no unhandled promises.\r\n\r\n**Environment**\r\n- Probot version(s): 7.0.0\r\n- Node/npm version: node 10 / npm 6.4.1\r\n- OS: macOS 10.14\r\n\r\n**Additional context/Screenshots**\r\nFull source here:  https://github.com/bcgov/repo-mountie"},"comment":{"url":"https://api.github.com/repos/probot/probot/issues/comments/430101490","html_url":"https://github.com/probot/probot/issues/715#issuecomment-430101490","issue_url":"https://api.github.com/repos/probot/probot/issues/715","id":430101490,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDEwMTQ5MA==","user":{"login":"jleach","id":390891,"node_id":"MDQ6VXNlcjM5MDg5MQ==","avatar_url":"https://avatars0.githubusercontent.com/u/390891?v=4","gravatar_id":"","url":"https://api.github.com/users/jleach","html_url":"https://github.com/jleach","followers_url":"https://api.github.com/users/jleach/followers","following_url":"https://api.github.com/users/jleach/following{/other_user}","gists_url":"https://api.github.com/users/jleach/gists{/gist_id}","starred_url":"https://api.github.com/users/jleach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jleach/subscriptions","organizations_url":"https://api.github.com/users/jleach/orgs","repos_url":"https://api.github.com/users/jleach/repos","events_url":"https://api.github.com/users/jleach/events{/privacy}","received_events_url":"https://api.github.com/users/jleach/received_events","type":"User","site_admin":false},"created_at":"2018-10-16T05:01:26Z","updated_at":"2018-10-16T05:01:26Z","author_association":"NONE","body":"Thanks."}}
{"actor":{"display_login":"jleach"}}