[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/rv0/JavaScriptButtons/master/test/lib/runner.js [Back]  [Original]

/*global require, window, module */
require.config({
	paths: {
		"mocha": "../../node_modules/mocha/mocha",
		"chai": "../../node_modules/chai/chai"
	}
});

(function (module) {

	'use strict';

	if (typeof window !== 'undefined') {

		require.config({
			shim: {
				'mocha': {
					init: function () {
						return this.mocha;
					}
				}
			}
		});

		require([
			'require',
			'chai',
			'mocha'
		], function (require, chai, mocha) {
			var should = chai.should();

			mocha.setup('bdd');

			require(['../spec/test'], function () {
				mocha.run();
			});
		});

	}
}(typeof module === 'undefined' ? {} : module));/*global module:false */

Web Proxy Viewer  |  New URL  |  Original Page