<commit_before>var chai = require('chai')
var expect = chai.expect;
var frequency = require(__dirname + "/../lib/frequency.js");

describe('the frequency method', function(){
  it('should return counts of each word in a string', function(){
    var testString = 'Duck duck duck duck duck goose. There should be 6 ducks and 2 gooses.'
    var returnObject = frequency(testString);
    console.log(typeof returnObject);
    expect(typeof returnObject).to.eql(typeof {});
    expect(returnObject.duck).to.eql(6);
    expect(returnObject.goose).to.eql(2);
  });
});<commit_msg>Resolved tests<commit_after>var chai = require('chai')
var expect = chai.expect;
var frequency = require(__dirname + "/../lib/frequency.js");

describe('the frequency method', function(){
  it('should return counts of each word in a string', function(){
    var testString = 'Duck duck duck duck duck goose. There should be 6 ducks and 2 gooses.'
    var returnObject = frequency(testString);
    console.log(typeof returnObject);
    expect(typeof returnObject).to.eql(typeof {});
    expect(returnObject.duck).to.eql(5);
    expect(returnObject.goose).to.eql(1);
  });
});
{'fraction_non_alphanumeric': 0.14298169136878813, 'fraction_numerical': 0.006974716652136007, 'mean_word_length': 4.466666666666667, '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': '6390189', 'n_tokens_mistral': 351, 'n_tokens_neox': 340, 'n_words': 99}