<commit_before>'use strict';

var chai = require('chai'),
    should = chai.should(),
    expect = chai.expect,
    spies = require('chai-spies'),
    hackerfire = require('../index');

describe('top stories', function() {

  beforeEach(function(){
    chai.use(spies);
  });

  it('should return a list of top stories', function() {

    hackerfire.getTopStories(function(res) {
      expect(res).to.not.be.undefined;
    });
  });

});

describe('users', function() {

  beforeEach(function(){
    chai.use(spies);
  });

  it('should return a list of users with a single string input', function() {

    hackerfire.getUserById('mot0rola', function(res) {
      expect(res).to.not.be.undefined;
    });
    
  });

  it('should return a list of users with an array input of users', function() {

    hackerfire.getUserById(['pg', 'mot0rola'], function(res) {
      expect(res).to.not.be.undefined;
    });

  });

});

describe('item', function() {

  beforeEach(function(){
    chai.use(spies);
  });

  it('should return a list of items with a single string input', function() {<commit_msg>use hackerfire npm package! :D<commit_after>'use strict';

var chai = require('chai'),
    should = chai.should(),
    expect = chai.expect,
    spies = require('chai-spies'),
    hackerfire = require('hackerfire');

describe('top stories', function() {

  beforeEach(function(){
    chai.use(spies);
  });

  it('should return a list of top stories', function() {

    hackerfire.getTopStories(function(res) {
      expect(res).to.not.be.undefined;
    });
  });

});

describe('users', function() {

  beforeEach(function(){
    chai.use(spies);
  });

  it('should return a list of users with a single string input', function() {

    hackerfire.getUserById('mot0rola', function(res) {
      expect(res).to.not.be.undefined;
    });

  });

  it('should return a list of users with an array input of users', function() {

    hackerfire.getUserById(['pg', 'mot0rola'], function(res) {
      expect(res).to.not.be.undefined;
    });

  });

});

describe('item', function() {

  beforeEach(function(){
    chai.use(spies);
  });

  it('should return a list of items with a single string input', function() {
{'fraction_non_alphanumeric': 0.17113027689514299, 'fraction_numerical': 0.0018157058556513845, 'mean_word_length': 3.4796747967479673, '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': '600198', 'n_tokens_mistral': 742, 'n_tokens_neox': 710, 'n_words': 164}