Use receive api to deliver event

This commit is contained in:
Brandon Keepers 2017-07-18 20:29:12 +02:00
parent f2103fded6
commit 332ee97bce
No known key found for this signature in database
GPG Key ID: F9533396D5FACBF6
1 changed files with 1 additions and 1 deletions

View File

@ -32,4 +32,4 @@ const plugins = require('../lib/plugin')(probot);
plugins.load([pluginPath]);
probot.robot.log('Simulating event', eventName);
probot.robot.webhook.emit(eventName, {event: eventName, payload});
probot.receive({event: eventName, payload});