{"size": 756, "ext": "js", "max_stars_repo_path": "tests/dummy/index.js", "max_stars_repo_name": "zenflow/routeemitter", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "tests/dummy/index.js", "max_issues_repo_name": "zenflow/routeemitter", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "tests/dummy/index.js", "max_forks_repo_name": "zenflow/routeemitter", "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": 29.0769230769, "max_line_length": 76, "alphanum_fraction": 0.4298941799}
var RouteEmitter = require('../../lib');
var _ = require('lodash');
var dummy = {
    patterns: {
        home: '',
        a: 'a',
        b: 'b(/:x)',
        c: 'c/:x/c',
        notfound: '*path'
    },
    urls: ['/a', '/b/asf', '/c/c/c', '/c/c/c?f=1', '/c/c/c/c', '/?asd=asd'],
    routes: [
        {name: 'a', params: {}},
        {name: 'b', params: {x: 'asf'}},
        {name: 'c', params: {x: 'c'}},
        {name: 'c', params: {x: 'c', f: '1'}},
        {name: 'notfound', params: {path: 'c/c/c/c'}},
        {name: 'home', params: {asd: 'asd'}}
    ],
    getRouter: function(options){
        return new RouteEmitter(dummy.patterns, _.assign({}, {
            bindToDocument: false
        }, options || {}));
    }
};
module.exports = dummy;