<commit_before>//
// test/index.js
//
// Copyright (c) 2012 <NAME> <<EMAIL>>
// MIT Licensed 
//
/*jshint asi: true, laxcomma: true*/
var should = require('should')



// These are here so my IDE will shut the hell up.
var before = global.before
  , before_each = global.beforeEach
  , describe = global.describe
  , it = global.it



describe('index', function () {
  
  it('should return a dork instance', function () {
    var index = require('../lib')
    
    // To assert it's identity we're just going to make sure
    // some basic dork vars exist.
    should.exist(index.active_suite)
    // And since the dork object is not that unique, lets make sure it's
    // not a suite/test object.
    should.not.exist(index.add_suite)
    should.not.exist(index.add_test)
    should.not.exist(index.fn)
  })
  
  it('should expose the inner library modules', function () {
    var index = require('../lib')
    
    should.exist(index.dork)
    should.exist(index.suite)
    should.exist(index.test)
    should.exist(index.utils)
  })
  
  it('should return the same object on each require', function () {
    var index_a = require('../lib')
    var index_b = require('../lib')
    index_a.foo = 'foo'
    
    // This foo test isn't really needed, but i like it anyway..
    index_a.foo.should.equal(index_b.foo)
    index_a.should.equal(index_b)
  })
})



require('./runner')
require('./test')

require('./suite')

require('./dork')<commit_msg>Changed a stupid test to be a bit less stupid.<commit_after>//
// test/index.js
//
// Copyright (c) 2012 <NAME> <<EMAIL>>
// MIT Licensed 
//
/*jshint asi: true, laxcomma: true*/
var should = require('should')



// These are here so my IDE will shut the hell up.
var before = global.before
  , before_each = global.beforeEach
  , describe = global.describe
  , it = global.it



describe('index', function () {
  
  it('should return a dork instance', function () {
    var index = require('../lib')
    
    // To assert it's identity we're just going to make sure
    // some basic dork vars exist.
    should.exist(index.active_suite)
    // And since the dork object is not that unique, lets make sure it's
    // not a suite/test object.
    should.not.exist(index.add_suite)
    should.not.exist(index.add_test)
    should.not.exist(index.fn)
  })
  
  it('should expose the inner library modules', function () {
    var index = require('../lib')
    
    should.exist(index.dork)
    should.exist(index.suite)
    should.exist(index.test)
    should.exist(index.utils)
  })
  
  it('should return the same object on each require', function () {
    var index_a = require('../lib')
    var index_b = require('../lib')
    index_a.foo = 'foo'
    
    // This foo test isn't really needed, but i like it anyway..
    index_a.foo.should.equal('foo')
    index_a.should.equal(index_b)
  })
})



require('./runner')
require('./test')

require('./suite')

require('./dork')
{'fraction_non_alphanumeric': 0.14046603216278306, 'fraction_numerical': 0.002625533311453889, 'mean_word_length': 2.379157427937916, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2522538', 'n_tokens_mistral': 1034, 'n_tokens_neox': 955, 'n_words': 272}