{"size": 911, "ext": "js", "max_stars_repo_path": "dist/src/XMLHttpRequestFactory/XMLHttpRequestFactory.spec.js", "max_stars_repo_name": "reecemillsom/http-request-client", "max_stars_repo_stars_event_min_datetime": "2019-01-11T17:08:35.000Z", "max_stars_repo_stars_event_max_datetime": "2019-01-11T17:08:35.000Z", "max_issues_repo_path": "dist/src/XMLHttpRequestFactory/XMLHttpRequestFactory.spec.js", "max_issues_repo_name": "reecemillsom/HttpClient", "max_issues_repo_issues_event_min_datetime": "2018-10-20T20:05:26.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-07T00:36:10.000Z", "max_forks_repo_path": "dist/src/XMLHttpRequestFactory/XMLHttpRequestFactory.spec.js", "max_forks_repo_name": "reecemillsom/HttpClient", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 18, "max_forks_count": null, "avg_line_length": 45.55, "max_line_length": 131, "alphanum_fraction": 0.6750823271}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var chai_1 = require("chai");
var XMLHttpRequestMock_1 = require("./XMLHttpRequest/XMLHttpRequestMock");
var XMLHttpRequestFactory_1 = require("./XMLHttpRequestFactory");
describe("XMLHttpRequestFactory", function () {
    var xmlHttpRequestFactory;
    describe("when asked to create", function () {
        describe("when XMLHttpRequest is truthy", function () {
            before(function () {
                xmlHttpRequestFactory = new XMLHttpRequestFactory_1.XMLHttpRequestFactory(XMLHttpRequestMock_1.XMLHttpRequestMock);
            });
            it("should return an instanceOf XMLHttpRequest", function () {
                var createResult = xmlHttpRequestFactory.create();
                chai_1.expect(createResult).to.be.an.instanceof(XMLHttpRequestMock_1.XMLHttpRequestMock);
            });
        });
    });
});
