<commit_before>var chai = require('chai');
var should = chai.should();

describe('TribuneData', function() {
  var tribune = require('../lib/tribuneData');

  describe('getCrimeCount', function() {
    it('should return a number', function(done) {
      tribune.getCrimeCount({ communityID: 1 }, function(err, num) {
        if(err) {
          done(err);
        } else {
          num.should.be.a('number');
          done();
        }
      });
    });

  });

  describe('getCrowdedPct', function() {
    it('should return a number', function(done) {
      tribune.getCrowdedPct({ communityID: 1 }, function(err, num) {
        if(err) {
          done(err);
        } else {
          num.should.be.a('number');
          done();
        }
      });
    });
  });
});<commit_msg>Made the unit tests more robust<commit_after>var chai = require('chai');
var should = chai.should();

describe('TribuneData', function() {
  var tribune = require('../lib/tribuneData');

  describe('getCrimeCount', function() {
    it('should return a number', function(done) {
      tribune.getCrimeCount({ communityID: 1, landArea: 1800 }, function(err, num) {
        if(err) {
          done(err);
        } else {
          num.should.be.a('number');
          num.should.not.be.NaN;
          done();
        }
      });
    });

  });

  describe('getCrowdedPct', function() {
    it('should return a number', function(done) {
      tribune.getCrowdedPct({ communityID: 1 }, function(err, num) {
        if(err) {
          done(err);
        } else {
          num.should.be.a('number');
          num.should.not.be.NaN;
          done();
        }
      });
    });
  });
});
{'fraction_non_alphanumeric': 0.1750599520383693, 'fraction_numerical': 0.004796163069544364, 'mean_word_length': 2.1490566037735848, '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': '3162556', 'n_tokens_mistral': 544, 'n_tokens_neox': 534, 'n_words': 99}