<commit_before>var expect = require('chai').expect;
var sinon = require('sinon');
var Q = require('q');

var dipper = require('../dipper');

describe('Dipper', function () {
    describe('createApplication', function () {
        it('rejects empty configs', function (done) {
            var app = dipper.createApplication({
                serviceConfig: []
            });

            app.catch(function (e) {
                expect(e).to.be.ok;
                done();
            });
        });

        it('loads and sets up provided packages', function (done) {
            var packages = ['package1'];
            var fakeServiceRegistry = { service: 'registry' };

            var _dipper = new dipper.Dipper({
                packageConfig: packages
            });
            _dipper.serviceRegistry = fakeServiceRegistry;

            var loadStub =  sinon.stub(_dipper, 'loadPackages').returns(Q.resolve());
            var setupStub =  sinon.stub(_dipper, 'setupServices').returns(Q.resolve());

            _dipper.bootstrap().then(function (serviceRegistry) {
                expect(serviceRegistry).to.eql(fakeServiceRegistry);
                expect(loadStub.calledOnce).to.be.true;
                expect(setupStub.calledOnce).to.be.true;
                done();
            });
        });
    });
});
<commit_msg>Removed useless test.<commit_after>var expect = require('chai').expect;
var sinon = require('sinon');
var Q = require('q');

var dipper = require('../dipper');

describe('Dipper', function () {
    describe('createApplication', function () {
        it('rejects empty configs', function (done) {
            var app = dipper.createApplication({
                config: []
            });

            app.catch(function (e) {
                expect(e).to.be.ok;
                done();
            });
        });
    });
});

{'fraction_non_alphanumeric': 0.14715359828141783, 'fraction_numerical': 0.0005370569280343716, 'mean_word_length': 1.9109375, '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': '7338716', 'n_tokens_mistral': 506, 'n_tokens_neox': 493, 'n_words': 97}