<commit_before>var _            = require('lodash')

var validateUtil = requireRoot('utils/validate')



describe('@default', () => {

  it('returns validation functions in an object', () => {
    var functions = validateUtil({})
    _.each(functions, fn => {
      true.should.eql(typeof fn === 'function')
    })
  })


  it('throw an error if no value was provided', () => {

    var isCaught = false

    try {
      validateUtil()
    }
    catch (err) {<commit_msg>:sparkles:<commit_after>var _            = require('lodash')

var validateUtil = requireRoot('utils/validate')



describe('@default', () => {

  it('returns validation functions in an object', () => {
    var functions = validateUtil({})
    _.each(functions, fn => {
      true.should.eql(typeof fn === 'function')
    })
  })


  it('throws an error if no value was provided', () => {

    var isCaught = false

    try {
      validateUtil()
    }
    catch (err) {
{'fraction_non_alphanumeric': 0.1595744680851064, 'fraction_numerical': 0.0, 'mean_word_length': 2.719367588932806, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '1270341', 'n_tokens_mistral': 296, 'n_tokens_neox': 276, 'n_words': 70}