'use strict';

require('source-map-support/register');

var _mocha = require('mocha');

var _assert = require('assert');

var _assert2 = _interopRequireDefault(_assert);

var _EventHandler = require('../../src/agent/EventHandler');

var _EventHandlerPullRequest = require('../../src/handlers/EventHandlerPullRequest');

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

(0, _mocha.describe)('EventHandlerPullRequest', function () {
    var handlerPullRequest = void 0;
    var eventData = void 0;

    (0, _mocha.beforeEach)(function () {
        eventData = {
            ghEventId: 'id',
            ghEventType: 'pull_request',
            ghTaskConfig: {},
            MessageHandle: 'handle'
        };

        handlerPullRequest = new _EventHandlerPullRequest.EventHandlerPullRequest(eventData, console);
    });

    (0, _mocha.describe)('constructor', function () {
        (0, _mocha.it)('should instantiate as EventHandler', function () {
            _assert2.default.equal(handlerPullRequest instanceof _EventHandler.EventHandler, true);
        });
    });
});