{"size": 723, "ext": "js", "max_stars_repo_path": "test/test.routes.js", "max_stars_repo_name": "peteisace/mock-ts-server", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "test/test.routes.js", "max_issues_repo_name": "peteisace/mock-ts-server", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/test.routes.js", "max_forks_repo_name": "peteisace/mock-ts-server", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 16.0666666667, "max_line_length": 70, "alphanum_fraction": 0.5684647303}

// MODULES //

var // Expectation library:
	chai = require( 'chai' ),

	// Module to be tested:
	routes = require( './../app/routes.js' );


// VARIABLES //

var expect = chai.expect,
	assert = chai.assert;


// TESTS //

describe( 'app/routes', function tests() {
	'use strict';

	// SETUP //

	var app = {
			get: function( route, clbk ) {
				if ( arguments.length !== 2 ) {
					throw new Error( 'get()::must provide a route and a callback.' );
				}
			}
		};

	// TESTS //

	it( 'should export a function', function test() {
		expect( routes ).to.be.a( 'function' );
	});

	it( 'should not throw any errors', function test() {
		expect( foo ).to.not.throw( Error );
		function foo() {
			routes( app );
		}
	});

});