{"size": 686, "ext": "js", "max_stars_repo_path": "test/Unit/Responder.test.js", "max_stars_repo_name": "visgotti/gotti-reqres", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "test/Unit/Responder.test.js", "max_issues_repo_name": "visgotti/gotti-reqres", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/Unit/Responder.test.js", "max_forks_repo_name": "visgotti/gotti-reqres", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 36.1052631579, "max_line_length": 82, "alphanum_fraction": 0.6618075802}
"use strict";
var zmq_1 = require('../Mocks/zmq');
var Responder_1 = require('../../src/core/Messengers/Responder');
var assert = require('assert');
describe('Responder', function () {
    var mockResponder;
    var dealerSocket;
    beforeEach('Initialize Responder', function (done) {
        dealerSocket = new zmq_1.DealerSocket();
        mockResponder = new Responder_1.Responder(dealerSocket);
        done();
    });
    it('responder.addOnRequestHandler adds hook', function (done) {
        mockResponder.addOnRequestHandler("foo", function (bar) { return bar; });
        assert.deepStrictEqual(mockResponder.removeOnRequestHandler("foo"), true);
        done();
    });
});
