<commit_before>

/**
 * WPCONN module
 */

var WPCONN = require('../');
var Site = require('../lib/site');

/**
 * Testing data
 */

var wpapp = require('./data');

/**
 * WPCONN instance
 */

var wpconn = new WPCONN();

/**
 * Create a `Site` instance
 */

describe('site', function(){
  it('should be an instance of `Site`', function(){
    var wpconn = new WPCONN();

    wpconn.site
      .should.be.an.instanceOf(Site);
  });
});

describe('get site info', function(){
  
});<commit_msg>test: add some site tests<commit_after>

/**
 * WPCONN module
 */

var WPCONN = require('../');
var Site = require('../lib/site');

/**
 * Testing data
 */

var wpapp = require('./data');

/**
 * WPCONN instance
 */

var wpconn = new WPCONN();

/**
 * Create a `Site` instance
 */

describe('site', function(){
  it('should be an instance of `Site`', function(){
    var wpconn = new WPCONN();
    wpconn.site.should.be.an.instanceOf(Site);
  });

  it('should be set site identifier', function(){
    var wpconn = new WPCONN();
    var id = 'koke.me';
    wpconn.site.setId('koke.me');

    wpconn.site.id
      .should.be.eql('koke.me');
  });

  it('should require site data', function(done){
    var wpconn = new WPCONN();
    var site = wpconn.site;

    site.setId('koke.me');

    site.get(function(err, data){
      if (err) throw err;

      done();
    });
  });
});
{'fraction_non_alphanumeric': 0.20175438596491227, 'fraction_numerical': 0.0, 'mean_word_length': 2.8133704735376046, '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': '4173098', 'n_tokens_mistral': 490, 'n_tokens_neox': 489, 'n_words': 121}