<commit_before>// Copyright 2014-2015, Renasar Technologies Inc.
/* jshint node:true */

'use strict';

describe('common-api-router', function () {

    helper.before(function () {
        return [
            helper.require('/lib/api/index.js'),
            helper.require('/lib/services/file-service'),
            helper.require('/lib/services/files/file-plugin'),
            helper.require('/lib/services/common-api-presenter.js'),
            helper.require('/lib/services/gridfs-service.js'),
            dihelper.simpleWrapper({}, 'Task.Services.OBM')
        ];
    });

    helper.after();

    it('should add routes', function () {
        var router = helper.injector.get('common-api-router');
        var app = require('express')();
        app.use(router);
    });
});<commit_msg>glob load services in helper index-spec<commit_after>// Copyright 2014-2015, Renasar Technologies Inc.
/* jshint node:true */

'use strict';

describe('common-api-router', function () {

    helper.before(function () {
        return [
            helper.require('/lib/api/index.js'),
            helper.requireGlob('/lib/**/*.js'),
            dihelper.simpleWrapper({}, 'Task.Services.OBM')
        ];
    });

    helper.after();

    it('should add routes', function () {
        var router = helper.injector.get('common-api-router');
        var app = require('express')();
        app.use(router);
    });
});
{'fraction_non_alphanumeric': 0.1760113555713272, 'fraction_numerical': 0.0113555713271824, 'mean_word_length': 2.4306569343065694, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3190242', 'n_tokens_mistral': 424, 'n_tokens_neox': 399, 'n_words': 68}