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

var TEST_SUMMONER = 'guardsmanbob';
var TEST_PLATFORM = 'euw';

// Below, RESTeemo's API is "mocked." This allows us to test node-resteemo
// without actually querying the online API.
//
// Good: faster tests
// Bad: suite won't tell us when a RESTeemo update is not backwards-compatible
var scout = nock('http://api.captainteemo.com')
  .get('/player/' + TEST_PLATFORM + '/' + TEST_SUMMONER)
  .replyWithFile(200, __dirname + '/data/profile.json')
  .get('/player/' + TEST_PLATFORM + '/' + TEST_SUMMONER + '/recent_games')
  .replyWithFile(200, __dirname + '/data/recent_games.json')
  .get('/player/' + TEST_PLATFORM + '/' + TEST_SUMMONER + '/influence_points')
  .replyWithFile(200, __dirname + '/data/influence_points.json');

describe('node-resteemo', function() {
  before(function() {<commit_msg>More reasons to mock HTTP requests<commit_after>var chai = require('chai');
var nock = require('nock');
var resteemo = require('../');
var should = chai.should();

var TEST_SUMMONER = 'guardsmanbob';
var TEST_PLATFORM = 'euw';

// Below, RESTeemo's API is "mocked." This allows us to test node-resteemo
// without actually querying the online API.
//
// Good: faster tests that work even when the API is down
// Bad: suite won't tell us when a RESTeemo update is not backwards-compatible
var scout = nock('http://api.captainteemo.com')
  .get('/player/' + TEST_PLATFORM + '/' + TEST_SUMMONER)
  .replyWithFile(200, __dirname + '/data/profile.json')
  .get('/player/' + TEST_PLATFORM + '/' + TEST_SUMMONER + '/recent_games')
  .replyWithFile(200, __dirname + '/data/recent_games.json')
  .get('/player/' + TEST_PLATFORM + '/' + TEST_SUMMONER + '/influence_points')
  .replyWithFile(200, __dirname + '/data/influence_points.json');

describe('node-resteemo', function() {
  before(function() {
{'fraction_non_alphanumeric': 0.16415584415584417, 'fraction_numerical': 0.00935064935064935, 'mean_word_length': 4.379888268156424, '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': '3893524', 'n_tokens_mistral': 702, 'n_tokens_neox': 643, 'n_words': 165}