<commit_before>
/**
 * WPCOM module
 */

var util = require('./util');
var assert = require('assert');

/**
 * WPCOM object
 */

describe('wpcom', function(){

  describe('wpcom.freshlyPressed', function(){
    it('should require freshly pressed', function(done){
      var wpcom = util.wpcom_public();

      wpcom.freshlyPressed(function(err, data){
        if (err) throw err;

        // testing object
        assert.ok(data);
        assert.equal('number', typeof data.number);
        assert.ok(data.posts instanceof Array);
        done();
      });
    });
  });

});
<commit_msg>Cover tests: wpcom<commit_after>
/**
 * WPCOM module
 */

var util = require('./util');
var assert = require('assert');

/**
 * WPCOM object
 */

describe('wpcom', function(){

  describe('wpcom.freshlyPressed', function(){
    it('should require freshly pressed', function(done){
      var wpcom = util.wpcom_public();

      wpcom.freshlyPressed()
        .then( data => {
          // testing object
          assert.ok(data);
          assert.equal('number', typeof data.number);
          assert.ok(data.posts instanceof Array);
          done();
        })
        .catch(done);
    });
  });

});

{'fraction_non_alphanumeric': 0.16848281642917015, 'fraction_numerical': 0.0, 'mean_word_length': 2.511764705882353, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6094355', 'n_tokens_mistral': 365, 'n_tokens_neox': 354, 'n_words': 78}