<commit_before>'use strict';

/* globals describe: false, it: false */

require('should');
require('co-mocha');

let Reporter = require('../../../lib/reporter');

describe('reporter', function() {
  it('should return an object', function * () {
    let reporter = new Reporter('clean');
    reporter.should.be.type('object');
  });

  it('should handle npm reporters', function * () {
    let reporter = new Reporter('Timer');
    reporter.should.be.type('object');
  });

  it('should error on invalid reporters', function * () {
    try {
      new Reporter('xyz');
    } catch (err) {
      err.should.be.type('object');
    }
  });
});<commit_msg>fix(jshint): Fixing issue with jshint in unit tests<commit_after>'use strict';

/* globals describe: false, it: false */

require('should');
require('co-mocha');

let Reporter = require('../../../lib/reporter');

describe('reporter', function() {
  it('should return an object', function * () {
    let reporter = new Reporter('clean');
    reporter.should.be.type('object');
  });

  it('should handle npm reporters', function * () {
    let reporter = new Reporter('Timer');
    reporter.should.be.type('object');
  });

  it('should error on invalid reporters', function * () {
    try {
      let reporter = new Reporter('xyz');
      reporter.should.be.type('object');
    } catch (err) {
      err.should.be.type('object');
    }
  });
});
{'fraction_non_alphanumeric': 0.19484240687679083, 'fraction_numerical': 0.0, 'mean_word_length': 3.406940063091483, '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': '485289', 'n_tokens_mistral': 433, 'n_tokens_neox': 417, 'n_words': 102}