<commit_before>/**
 * Created by JT on 8/25/16.
 */
var should = require('chai').should();

// module to test
var string = require('./../../lib/modules/string');

// data
var stringConfig = require('./../../lib/modules/config/string');

describe('STRING', function () {

    describe('names', function () {
        describe('firstName - male', function () {
            it('should return a male first name as a string', function (done) {
                let result = string.names.firstName('male');
                let indexOfMaleFirstName = stringConfig.male.indexOf(result.toUpperCase());

                result.should.be.a('string');
                indexOfMaleFirstName.should.not.equal(null);
                indexOfMaleFirstName.should.not.equal(undefined);
                indexOfMaleFirstName.should.not.equal(-1);
                done();
            });

            it('should not return null or undefined male name', function (done) {
                let result = string.names.firstName('male');
                let indexOfMaleFirstName = stringConfig.male.indexOf(result.toUpperCase());

                result.should.be.a('string');
                indexOfMaleFirstName.should.not.equal(null);
                indexOfMaleFirstName.should.not.equal(undefined);
                done();
            });

            it('should return name from original male list', function (done) {
                let result = string.names.firstName('male');
                let indexOfMaleFirstName = stringConfig.male.indexOf(result.toUpperCase());

                indexOfMaleFirstName.should.not.equal(-1);
                done();
            });
        });

        describe('firstName - female', function() {
            it('should return a female first name as a string', function (done) {
                let result = string.names.firstName('female');
                let indexOfFemaleName = stringConfig.female.indexOf(result.toUpperCase());

                result.should.be.a('string');
                indexOfFemaleName.should.not.equal(null);
                indexOfFemaleName.should.not.equal(undefined);
                indexOfFemaleName.should.not.equal(-1);
                done();
            });

            it('should not return null or undefined female name', function (done) {
                let result = string.names.firstName('male');
                let indexOfFemaleName = stringConfig.female.indexOf(result.toUpperCase());

                result.should.be.a('string');
                indexOfFemaleName.should.not.equal(null);
                indexOfFemaleName.should.not.equal(undefined);
                done();
            });

            it('should return name from original female list', function (done) {
                let result = string.names.firstName('female');
                let indexOfFemaleName = stringConfig.female.indexOf(result.toUpperCase());

                indexOfFemaleName.should.not.equal(-1);
                done();
            });
        });
    });
});<commit_msg>Another typo fix in firstname unit test.<commit_after>/**
 * Created by JT on 8/25/16.
 */
var should = require('chai').should();

// module to test
var string = require('./../../lib/modules/string');

// data
var stringConfig = require('./../../lib/modules/config/string');

describe('STRING', function () {

    describe('names', function () {
        describe('firstName - male', function () {
            it('should return a male first name as a string', function (done) {
                let result = string.names.firstName('male');
                let indexOfMaleFirstName = stringConfig.male.indexOf(result.toUpperCase());

                result.should.be.a('string');
                indexOfMaleFirstName.should.not.equal(null);
                indexOfMaleFirstName.should.not.equal(undefined);
                indexOfMaleFirstName.should.not.equal(-1);
                done();
            });

            it('should not return null or undefined male name', function (done) {
                let result = string.names.firstName('male');
                let indexOfMaleFirstName = stringConfig.male.indexOf(result.toUpperCase());

                result.should.be.a('string');
                indexOfMaleFirstName.should.not.equal(null);
                indexOfMaleFirstName.should.not.equal(undefined);
                done();
            });

            it('should return name from original male list', function (done) {
                let result = string.names.firstName('male');
                let indexOfMaleFirstName = stringConfig.male.indexOf(result.toUpperCase());

                indexOfMaleFirstName.should.not.equal(-1);
                done();
            });
        });

        describe('firstName - female', function() {
            it('should return a female first name as a string', function (done) {
                let result = string.names.firstName('female');
                let indexOfFemaleName = stringConfig.female.indexOf(result.toUpperCase());

                result.should.be.a('string');
                indexOfFemaleName.should.not.equal(null);
                indexOfFemaleName.should.not.equal(undefined);
                indexOfFemaleName.should.not.equal(-1);
                done();
            });

            it('should not return null or undefined female name', function (done) {
                let result = string.names.firstName('female');
                let indexOfFemaleName = stringConfig.female.indexOf(result.toUpperCase());

                result.should.be.a('string');
                indexOfFemaleName.should.not.equal(null);
                indexOfFemaleName.should.not.equal(undefined);
                done();
            });

            it('should return name from original female list', function (done) {
                let result = string.names.firstName('female');
                let indexOfFemaleName = stringConfig.female.indexOf(result.toUpperCase());

                indexOfFemaleName.should.not.equal(-1);
                done();
            });
        });
    });
});
{'fraction_non_alphanumeric': 0.1278170751768383, 'fraction_numerical': 0.0029610133245599607, 'mean_word_length': 1.8842504743833017, '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': '734330', 'n_tokens_mistral': 1636, 'n_tokens_neox': 1432, 'n_words': 300}