<commit_before>var assert = require( 'assert' );
var expect = require( 'chai' ).expect;
var Server = require( '../../../build/lib/chook.js' ).Server;

describe( 'Server', function(){
	
});

describe( 'Server', function(){
	var server;
	before( function(){
		server = new Server();
	});
	it( 'should be a function', function(){
		assert.equal( typeof Server, 'function' );
	});
	it( 'should create a express app', function(){
		assert.equal( typeof server, 'object' );
	});
});

describe( 'Server.validateMethod', function(){
	var server;
	before( function(){
		server = new Server();
	});
	it( 'should throw a TypeError with invalid method', function(){
		expect( server.validateMethod.bind( server, 'asd' ) ).to.throw( 'Not a valid method.' );
	});
});<commit_msg>Added validateMethod test with a valid method<commit_after>var assert = require( 'assert' );
var expect = require( 'chai' ).expect;
var Server = require( '../../../build/lib/chook.js' ).Server;

describe( 'Server', function(){
	
});

describe( 'Server', function(){
	var server;
	before( function(){
		server = new Server();
	});
	it( 'should be a function', function(){
		assert.equal( typeof Server, 'function' );
	});
	it( 'should create a express app', function(){
		assert.equal( typeof server, 'object' );
	});
});

describe( 'Server.validateMethod', function(){
	var server;
	before( function(){
		server = new Server();
	});
	it( 'should throw a TypeError with invalid method', function(){
		expect( server.validateMethod.bind( server, 'asd' ) ).to.throw( 'Not a valid method.' );
	});
	it( 'should be fine with a valid one', function(){
		expect( server.validateMethod.bind( server, 'all' ) ).to.not.throw( 'Not a valid method.' );
	});
});
{'fraction_non_alphanumeric': 0.19253208868144692, 'fraction_numerical': 0.0, 'mean_word_length': 4.326086956521739, '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': '6687209', 'n_tokens_mistral': 546, 'n_tokens_neox': 528, 'n_words': 176}