<commit_before>'use strict';

var expect = require('chai').expect;

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

describe('flora-cluster', function () {
    it('should be an object', function () {
        expect(floraCluster).to.be.an('object');
    });

    it('should expose master and worker objects', function () {
        expect(floraCluster).to.have.property('master');
        expect(floraCluster).to.have.property('worker');
    });

    describe('worker', function () {
        it('should be an object', function () {
            expect(floraCluster.worker).to.be.an('object');
        });

        it('should expose functions', function () {
            expect(floraCluster.worker).to.have.property('run');
            expect(floraCluster.worker).to.have.property('attach');
            expect(floraCluster.worker).to.have.property('serverStatus');
            expect(floraCluster.worker).to.have.property('shutdown');
        });
    });
});<commit_msg>Adjust tests for the new interface<commit_after>'use strict';

var expect = require('chai').expect;

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

describe('flora-cluster', function () {
    it('should be an object', function () {
        expect(floraCluster).to.be.an('object');
    });

    it('should expose master and worker objects', function () {
        expect(floraCluster).to.have.property('Master');
        expect(floraCluster).to.have.property('Worker');
    });

    describe('Worker', function () {
        it('should be a function', function () {
            expect(floraCluster.Worker).to.be.a('function');
        });

        describe('instance', function () {
            var worker = new floraCluster.Worker();

            it('should expose functions', function () {
                expect(worker).to.have.property('run');
                expect(worker).to.have.property('attach');
                expect(worker).to.have.property('serverStatus');
                expect(worker).to.have.property('shutdown');
            });
        });
    });
});
{'fraction_non_alphanumeric': 0.17237953303527073, 'fraction_numerical': 0.0, 'mean_word_length': 2.688644688644689, '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': '1331170', 'n_tokens_mistral': 549, 'n_tokens_neox': 532, 'n_words': 93}