<commit_before>/*!
 * qwebs
 * Copyright(c) 2016 <NAME>
 * MIT Licensed
 */
"use strict";

const Router = require('../lib/router');
const Injector = require("../lib/injector");

describe("router", () => {
    
    let init = () => {
        return Promise.resolve().then(() => {
            let injector = new Injector();
            let mockQwebs = {
                root: __dirname,
                loaded: true,
                injector: injector,
                resolve: name => {
                    return injector.resolve(name);
                }
            };

            let router = new Router(mockQwebs);
            
            injector.inject("$qwebs", mockQwebs);
            injector.inject("$injector", injector);
            
            return {
                router: router,
                injector: injector,
                request: {
                    url: "/",
                    method: "GET"
                },<commit_msg>Update router.spec.js<commit_after>/*!
 * qwebs
 * Copyright(c) 2016 <NAME>
 * MIT Licensed
 */
"use strict";

const Qwebs = require("../lib/qwebs");
const Router = require('../lib/router');
const Injector = require("../lib/injector");

describe("router", () => {
    
    let init = () => {
        return Promise.resolve().then(() => {
            let injector = new Injector();
            let mockQwebs = {
                root: __dirname,
                loaded: true,
                injector: injector,
                resolve: name => {
                    return injector.resolve(name);
                }
            };

            let router = new Router(mockQwebs);
            
            injector.inject("$qwebs", mockQwebs);
            injector.inject("$injector", injector);
            
            return {
                router: router,
                injector: injector,
                request: {
                    url: "/",
                    method: "GET"
                },
{'fraction_non_alphanumeric': 0.1315655277919429, 'fraction_numerical': 0.00407955124936257, 'mean_word_length': 1.234624145785877, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6847183', 'n_tokens_mistral': 545, 'n_tokens_neox': 496, 'n_words': 110}