{"size": 2457, "ext": "js", "max_stars_repo_path": "src/client/routes/hash/HashRoute.test.js", "max_stars_repo_name": "joefallon/blockchain-demo", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/client/routes/hash/HashRoute.test.js", "max_issues_repo_name": "joefallon/blockchain-demo", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/client/routes/hash/HashRoute.test.js", "max_forks_repo_name": "joefallon/blockchain-demo", "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": 76.78125, "max_line_length": 1070, "alphanum_fraction": 0.7863247863}
"use strict";
var _this = this;
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var assert = require("assert");
var enzyme_1 = require("enzyme");
var React = require("react");
var react_router_1 = require("react-router");
var HashRoute_1 = require("./HashRoute");
var HashModel_1 = require("../../models/HashModel");
describe('HashRoute', function () {
    afterEach(function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
        return tslib_1.__generator(this, function (_a) {
            document.title = '';
            return [2 /*return*/];
        });
    }); });
    it('initializes correctly', function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
        var wrapper;
        return tslib_1.__generator(this, function (_a) {
            wrapper = enzyme_1.mount(React.createElement(react_router_1.MemoryRouter, { initialEntries: ['/'], initialIndex: 0 },
                React.createElement(react_router_1.Route, { render: function (props) { return renderHash(props); } })));
            assert.equal(document.title, 'Hash | Blockchain Demo');
            return [2 /*return*/];
        });
    }); });
    function renderHash(props) {
        props.model = new HashModel_1.HashModel();
        return (React.createElement(HashRoute_1.HashRoute, tslib_1.__assign({}, props)));
    }
});
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSGFzaFJvdXRlLnRlc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI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