<commit_before>var should=require('should'),
	gitShow=require('../git_show.js'),
	testRepo="/Users/aumkara/workspace/git-show",
	debug=require('debug')('git:test');;

describe('git-show', function gitShowLib() {
	this.timeout(0);
	debug=require('debug')('git:test:gitShowLib');
	
	it("should return a promise", function test(done) {
		debug=require('debug')('git:test:gitShowLib:test');
		process.chdir(testRepo);
		var returnObject=gitShow();
		//duck-type check the returned object to see if it's thennable
		returnObject.then.should.be.type('function');
		returnObject.then(function onResolve() {
			debug=require('debug')('git:test:gitShowLib:test:onResolve');
			done();
		}, function onReject() {<commit_msg>refactored to use __dirname rather than a hardcoded path<commit_after>var should=require('should'),
	gitShow=require('../git_show.js'),
	testRepo=__dirname,
	debug=require('debug')('git:test');;

describe('git-show', function gitShowLib() {
	this.timeout(0);
	debug=require('debug')('git:test:gitShowLib');
	
	it("should return a promise", function test(done) {
		debug=require('debug')('git:test:gitShowLib:test');
		process.chdir(testRepo);
		var returnObject=gitShow();
		//duck-type check the returned object to see if it's thennable
		returnObject.then.should.be.type('function');
		returnObject.then(function onResolve() {
			debug=require('debug')('git:test:gitShowLib:test:onResolve');
			done();
		}, function onReject() {
{'fraction_non_alphanumeric': 0.17785467128027682, 'fraction_numerical': 0.001384083044982699, 'mean_word_length': 6.858695652173913, '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': '7439860', 'n_tokens_mistral': 503, 'n_tokens_neox': 479, 'n_words': 82}