'use strict';

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

var _fs = require('fs');

var _fs2 = _interopRequireDefault(_fs);

var _mocha = require('mocha');

var _assert = require('assert');

var _assert2 = _interopRequireDefault(_assert);

var _Plugin = require('../../src/agent/Plugin');

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

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

(0, _mocha.describe)('EventHandler', function () {
    var handler = void 0;
    (0, _mocha.beforeEach)(function () {
        var eventData = JSON.parse(_fs2.default.readFileSync(__dirname + '/../fixtures/githubEventPayload.json', 'utf-8'));
        handler = new _EventHandler.EventHandler(eventData, console);
    });

    (0, _mocha.describe)('constructor', function () {
        (0, _mocha.it)('should instantiate as Plugin', function () {
            _assert2.default.equal(handler instanceof _Plugin.Plugin, true);
        });
    });
});