Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

fix styling in previous commit

TJ Holowaychukbc700d8beaa5
diff --git a/lib/mocha.js b/lib/mocha.js
index eedcdd5a..d98df69d 100644
--- a/lib/mocha.js
+++ b/lib/mocha.js
@@ -229,6 +229,7 @@ Mocha.prototype.globals = function(globals){
* @return {Mocha}
* @api public
*/
+
Mocha.prototype.timeout = function(timeout){
this.suite.timeout(timeout);
return this;
diff --git a/support/tail.js b/support/tail.js
index 29005a5e..d6c5e5cd 100644
--- a/support/tail.js
+++ b/support/tail.js
@@ -62,11 +62,13 @@ process.on = function(e, fn){
// boot
;(function(){
+
/**
* Expose mocha.
*/
+
var Mocha = window.Mocha = require('mocha'),
- mocha = window.mocha = new Mocha({reporter: 'html'});
+ mocha = window.mocha = new Mocha({ reporter: 'html' });
/**
* Highlight the given string of `js`.
@@ -115,7 +117,7 @@ process.on = function(e, fn){
* Normally this would happen in Mocha.prototype.loadFiles.
*/
- mocha.ui = function(ui) {
+ mocha.ui = function(ui){
Mocha.prototype.ui.call(this, ui);
this.suite.emit('pre-require', window, null, this);
return this;
@@ -126,7 +128,7 @@ process.on = function(e, fn){
*/
mocha.setup = function(opts){
- if ('string' === typeof opts) opts = {ui: opts};
+ if ('string' == typeof opts) opts = { ui: opts };
for (var opt in opts) this[opt](opts[opt]);
return this;
};