☕️ Classic, reliable, trusted test framework for Node.js and the browser
make project follow editorconfig rules
Sean Langc6747a67981b
diff --git a/index.js b/index.jsindex 507566fa..169b2717 100644--- a/index.js+++ b/index.js@@ -1,4 +1,3 @@-module.exports = process.env.COV? require('./lib-cov/mocha')- : require('./lib/mocha');\ No newline at end of file+ : require('./lib/mocha');diff --git a/lib/browser/debug.js b/lib/browser/debug.jsindex 03cf5923..0d939e5c 100644--- a/lib/browser/debug.js+++ b/lib/browser/debug.js@@ -1,4 +1,3 @@-module.exports = function(type){return function(){}diff --git a/lib/browser/escape-string-regexp.js b/lib/browser/escape-string-regexp.jsindex ac6572ca..21a95663 100644--- a/lib/browser/escape-string-regexp.js+++ b/lib/browser/escape-string-regexp.js@@ -3,9 +3,9 @@var matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g;module.exports = function (str) {- if (typeof str !== 'string') {- throw new TypeError('Expected a string');- }+ if (typeof str !== 'string') {+ throw new TypeError('Expected a string');+ }- return str.replace(matchOperatorsRe, '\\$&');+ return str.replace(matchOperatorsRe, '\\$&');};diff --git a/lib/browser/events.js b/lib/browser/events.jsindex cfbd0720..f7082608 100644--- a/lib/browser/events.js+++ b/lib/browser/events.js@@ -1,4 +1,3 @@-/*** Module exports.*/@@ -175,4 +174,4 @@ EventEmitter.prototype.emit = function (name) {}return true;-};\ No newline at end of file+};diff --git a/lib/browser/progress.js b/lib/browser/progress.jsindex 90526f72..b30e5179 100644--- a/lib/browser/progress.js+++ b/lib/browser/progress.js@@ -94,28 +94,28 @@ Progress.prototype.draw = function(ctx){, y = half, rad = half - 1, fontSize = this._fontSize;-+ctx.font = fontSize + 'px ' + this._font;-+var angle = Math.PI * 2 * (percent / 100);ctx.clearRect(0, 0, size, size);-+// outer circlectx.strokeStyle = '#9f9f9f';ctx.beginPath();ctx.arc(x, y, rad, 0, angle, false);ctx.stroke();-+// inner circlectx.strokeStyle = '#eee';ctx.beginPath();ctx.arc(x, y, rad - 1, 0, angle, true);ctx.stroke();-+// textvar text = this._text || (percent | 0) + '%', w = ctx.measureText(text).width;-+ctx.fillText(text, x - w / 2 + 1diff --git a/lib/browser/tty.js b/lib/browser/tty.jsindex 6f5f079a..eab63882 100644--- a/lib/browser/tty.js+++ b/lib/browser/tty.js@@ -1,4 +1,3 @@-exports.isatty = function(){return true;};diff --git a/lib/context.js b/lib/context.jsindex 84440bef..c983b6eb 100644--- a/lib/context.js+++ b/lib/context.js@@ -1,4 +1,3 @@-/*** Expose `Context`.*/diff --git a/lib/hook.js b/lib/hook.jsindex 814e7b62..c2dc346b 100644--- a/lib/hook.js+++ b/lib/hook.js@@ -1,4 +1,3 @@-/*** Module dependencies.*/diff --git a/lib/interfaces/bdd.js b/lib/interfaces/bdd.jsindex ac16d72f..d212da29 100644--- a/lib/interfaces/bdd.js+++ b/lib/interfaces/bdd.js@@ -1,4 +1,3 @@-/*** Module dependencies.*/diff --git a/lib/interfaces/exports.js b/lib/interfaces/exports.jsindex cedb905f..95e8a070 100644--- a/lib/interfaces/exports.js+++ b/lib/interfaces/exports.js@@ -1,4 +1,3 @@-/*** Module dependencies.*/diff --git a/lib/interfaces/index.js b/lib/interfaces/index.jsindex f7b2655e..4f825d15 100644--- a/lib/interfaces/index.js+++ b/lib/interfaces/index.js@@ -1,4 +1,3 @@-exports.bdd = require('./bdd');exports.tdd = require('./tdd');exports.qunit = require('./qunit');diff --git a/lib/interfaces/qunit.js b/lib/interfaces/qunit.jsindex 0a22641c..fee8ac44 100644--- a/lib/interfaces/qunit.js+++ b/lib/interfaces/qunit.js@@ -1,4 +1,3 @@-/*** Module dependencies.*/diff --git a/lib/interfaces/tdd.js b/lib/interfaces/tdd.jsindex dc43e41a..951fc9e1 100644--- a/lib/interfaces/tdd.js+++ b/lib/interfaces/tdd.js@@ -1,4 +1,3 @@-/*** Module dependencies.*/diff --git a/lib/reporters/base.js b/lib/reporters/base.jsindex 00c94def..6d51fcfd 100644--- a/lib/reporters/base.js+++ b/lib/reporters/base.js@@ -1,4 +1,3 @@-/*** Module dependencies.*/diff --git a/lib/reporters/doc.js b/lib/reporters/doc.jsindex eab72e5f..d194eb0e 100644--- a/lib/reporters/doc.js+++ b/lib/reporters/doc.js@@ -1,4 +1,3 @@-/*** Module dependencies.*/diff --git a/lib/reporters/dot.js b/lib/reporters/dot.jsindex e2004683..3c744576 100644--- a/lib/reporters/dot.js+++ b/lib/reporters/dot.js@@ -1,4 +1,3 @@-/*** Module dependencies.*/diff --git a/lib/reporters/html-cov.js b/lib/reporters/html-cov.jsindex bfb27ffd..74b46adc 100644--- a/lib/reporters/html-cov.js+++ b/lib/reporters/html-cov.js@@ -1,4 +1,3 @@-/*** Module dependencies.*/@@ -48,4 +47,4 @@ function coverageClass(n) {if (n >= 50) return 'medium';if (n >= 25) return 'low';return 'terrible';-}\ No newline at end of file+}diff --git a/lib/reporters/html.js b/lib/reporters/html.jsindex 8b44e3ed..69ce879e 100644--- a/lib/reporters/html.js+++ b/lib/reporters/html.js@@ -1,4 +1,3 @@-/*** Module dependencies.*/diff --git a/lib/reporters/index.js b/lib/reporters/index.jsindex 1c4fccf0..87b76d90 100644--- a/lib/reporters/index.js+++ b/lib/reporters/index.js@@ -1,4 +1,3 @@-exports.Base = require('./base');exports.Dot = require('./dot');exports.Doc = require('./doc');diff --git a/lib/reporters/json-cov.js b/lib/reporters/json-cov.jsindex 83e57f4a..309c0ef5 100644--- a/lib/reporters/json-cov.js+++ b/lib/reporters/json-cov.js@@ -1,4 +1,3 @@-/*** Module dependencies.*/diff --git a/lib/reporters/json-stream.js b/lib/reporters/json-stream.jsindex 7cb8fbed..a591cec6 100644--- a/lib/reporters/json-stream.js+++ b/lib/reporters/json-stream.js@@ -1,4 +1,3 @@-/*** Module dependencies.*/@@ -58,4 +57,4 @@ function clean(test) {, fullTitle: test.fullTitle(), duration: test.duration}-}\ No newline at end of file+}diff --git a/lib/reporters/json.js b/lib/reporters/json.jsindex 4ec9e12d..f565506c 100644--- a/lib/reporters/json.js+++ b/lib/reporters/json.js@@ -1,4 +1,3 @@-/*** Module dependencies.*/diff --git a/lib/reporters/landing.js b/lib/reporters/landing.jsindex bf064f64..3b2622f9 100644--- a/lib/reporters/landing.js+++ b/lib/reporters/landing.js@@ -1,4 +1,3 @@-/*** Module dependencies.*/@@ -94,4 +93,4 @@ function Landing(runner) {* Inherit from `Base.prototype`.*/-Landing.prototype.__proto__ = Base.prototype;\ No newline at end of file+Landing.prototype.__proto__ = Base.prototype;diff --git a/lib/reporters/list.js b/lib/reporters/list.jsindex 3328e157..f64367a4 100644--- a/lib/reporters/list.js+++ b/lib/reporters/list.js@@ -1,4 +1,3 @@-/*** Module dependencies.*/diff --git a/lib/reporters/markdown.js b/lib/reporters/markdown.jsindex 6383a642..b4414a7a 100644--- a/lib/reporters/markdown.js+++ b/lib/reporters/markdown.js@@ -88,4 +88,4 @@ function Markdown(runner) {process.stdout.write(generateTOC(runner.suite));process.stdout.write(buf);});-}\ No newline at end of file+}diff --git a/lib/reporters/min.js b/lib/reporters/min.jsindex 1b6117d0..ce1a3fef 100644--- a/lib/reporters/min.js+++ b/lib/reporters/min.js@@ -1,4 +1,3 @@-/*** Module dependencies.*/diff --git a/lib/reporters/spec.js b/lib/reporters/spec.jsindex ada25c3e..e74f4ace 100644--- a/lib/reporters/spec.js+++ b/lib/reporters/spec.js@@ -1,4 +1,3 @@-/*** Module dependencies.*/diff --git a/lib/reporters/tap.js b/lib/reporters/tap.jsindex 2bcd995b..01a92eb0 100644--- a/lib/reporters/tap.js+++ b/lib/reporters/tap.js@@ -1,4 +1,3 @@-/*** Module dependencies.*/diff --git a/lib/reporters/templates/style.html b/lib/reporters/templates/style.htmlindex 643c0ab7..4b1f6826 100644--- a/lib/reporters/templates/style.html+++ b/lib/reporters/templates/style.html@@ -317,4 +317,4 @@ code .init { color: #2F6FAD }code .string { color: #5890AD }code .keyword { color: #8A6343 }code .number { color: #2F6FAD }-</style>\ No newline at end of file+</style>diff --git a/lib/reporters/xunit.js b/lib/reporters/xunit.jsindex 3506a07b..955eede0 100644--- a/lib/reporters/xunit.js+++ b/lib/reporters/xunit.js@@ -1,4 +1,3 @@-/*** Module dependencies.*/diff --git a/lib/runnable.js b/lib/runnable.jsindex 94090071..b0476f2f 100644--- a/lib/runnable.js+++ b/lib/runnable.js@@ -1,4 +1,3 @@-/*** Module dependencies.*/diff --git a/lib/suite.js b/lib/suite.jsindex e8696f40..011817b2 100644--- a/lib/suite.js+++ b/lib/suite.js@@ -1,4 +1,3 @@-/*** Module dependencies.*/diff --git a/lib/test.js b/lib/test.jsindex 11773e0c..4a4cf63c 100644--- a/lib/test.js+++ b/lib/test.js@@ -1,4 +1,3 @@-/*** Module dependencies.*/diff --git a/media/logo.svg b/media/logo.svgindex 88d37130..1bed0ce1 100644--- a/media/logo.svg+++ b/media/logo.svg@@ -1,8 +1,7 @@<?xml version="1.0" encoding="utf-8"?><!-- Generator: Adobe Illustrator 17.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">-<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"- width="612px" height="792px" viewBox="0 0 612 792" enable-background="new 0 0 612 792" xml:space="preserve">+<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="612px" height="792px" viewBox="0 0 612 792" enable-background="new 0 0 612 792" xml:space="preserve"><circle fill="#8A6343" cx="306" cy="396" r="306"/><text transform="matrix(1 0 0 1 72.1431 424.7633)" fill="#FFFFFF" font-family="'HelveticaNeue'" font-size="153">mocha</text></svg>diff --git a/mocha.js b/mocha.jsindex 5814b15d..3d540b61 100644--- a/mocha.js+++ b/mocha.js@@ -719,28 +719,28 @@ Progress.prototype.draw = function(ctx){, y = half, rad = half - 1, fontSize = this._fontSize;-+ctx.font = fontSize + 'px ' + this._font;-+var angle = Math.PI * 2 * (percent / 100);ctx.clearRect(0, 0, size, size);-+// outer circlectx.strokeStyle = '#9f9f9f';ctx.beginPath();ctx.arc(x, y, rad, 0, angle, false);ctx.stroke();-+// inner circlectx.strokeStyle = '#eee';ctx.beginPath();ctx.arc(x, y, rad - 1, 0, angle, true);ctx.stroke();-+// textvar text = this._text || (percent | 0) + '%', w = ctx.measureText(text).width;-+ctx.fillText(text, x - w / 2 + 1@@ -6071,4 +6071,4 @@ mocha.run = function(fn){*/Mocha.process = process;-})();\ No newline at end of file+})();diff --git a/support/compile.js b/support/compile.jsindex a0a94d2f..bea017ab 100644--- a/support/compile.js+++ b/support/compile.js@@ -1,4 +1,3 @@-/*** Module dependencies.*/diff --git a/support/foot.js b/support/foot.jsindex 158693a0..0319a0fe 100644--- a/support/foot.js+++ b/support/foot.js@@ -1 +1 @@-})();\ No newline at end of file+})();diff --git a/test/acceptance/context.js b/test/acceptance/context.jsindex add011bd..47c2db70 100644--- a/test/acceptance/context.js+++ b/test/acceptance/context.js@@ -1,4 +1,3 @@-describe('Context', function(){beforeEach(function(){this.calls = ['before'];diff --git a/test/acceptance/diffs.js b/test/acceptance/diffs.jsindex b0b6eaee..3b3155f7 100644--- a/test/acceptance/diffs.js+++ b/test/acceptance/diffs.js@@ -1,4 +1,3 @@-var fs = require('fs'), cssin = fs.readFileSync('test/acceptance/fixtures/css.in', 'ascii'), cssout = fs.readFileSync('test/acceptance/fixtures/css.out', 'ascii');diff --git a/test/acceptance/duration.js b/test/acceptance/duration.jsindex 1f4c5c86..4f319b8a 100644--- a/test/acceptance/duration.js+++ b/test/acceptance/duration.js@@ -1,4 +1,3 @@-describe('durations', function(){describe('when slow', function(){it('should highlight in red', function(done){diff --git a/test/acceptance/fixtures/css.in b/test/acceptance/fixtures/css.inindex 29fb2746..09a3ca53 100644--- a/test/acceptance/fixtures/css.in+++ b/test/acceptance/fixtures/css.in@@ -6,4 +6,4 @@ body {a {color: blue-}\ No newline at end of file+}diff --git a/test/acceptance/fixtures/css.out b/test/acceptance/fixtures/css.outindex 643692a4..53b3ec90 100644--- a/test/acceptance/fixtures/css.out+++ b/test/acceptance/fixtures/css.out@@ -10,4 +10,4 @@ a {foo {bar: 'baz';-}\ No newline at end of file+}diff --git a/test/acceptance/fs.js b/test/acceptance/fs.jsindex 102b8e1e..cdd32166 100644--- a/test/acceptance/fs.js+++ b/test/acceptance/fs.js@@ -1,4 +1,3 @@-var fs = require('fs');describe('fs.readFile()', function(){diff --git a/test/acceptance/glob/glob.js b/test/acceptance/glob/glob.jsindex b1127a2a..3029ae82 100644--- a/test/acceptance/glob/glob.js+++ b/test/acceptance/glob/glob.js@@ -1,4 +1,3 @@-describe('globbing test', function(){it('should find this test', function(){// see glob.sh for detailsdiff --git a/test/acceptance/globals.js b/test/acceptance/globals.jsindex 815eaee5..f8ef804b 100644--- a/test/acceptance/globals.js+++ b/test/acceptance/globals.js@@ -1,4 +1,3 @@-describe('global leaks', function(){before(function(){// uncomment to testdiff --git a/test/acceptance/http.js b/test/acceptance/http.jsindex 00406e6b..1dfa9146 100644--- a/test/acceptance/http.js+++ b/test/acceptance/http.js@@ -1,4 +1,3 @@-var http = require('http');var server = http.createServer(function(req, res){@@ -14,4 +13,4 @@ describe('http', function(){done();})})-})\ No newline at end of file+})diff --git a/test/acceptance/interfaces/bdd.js b/test/acceptance/interfaces/bdd.jsindex f536aa01..bea1db22 100644--- a/test/acceptance/interfaces/bdd.js+++ b/test/acceptance/interfaces/bdd.js@@ -1,4 +1,3 @@-describe('Array', function(){describe('#indexOf()', function(){it('should return -1 when the value is not present', function(){diff --git a/test/acceptance/interfaces/exports.js b/test/acceptance/interfaces/exports.jsindex c93bf282..38093d50 100644--- a/test/acceptance/interfaces/exports.js+++ b/test/acceptance/interfaces/exports.js@@ -1,4 +1,3 @@-var calls = [];exports.Array = {diff --git a/test/acceptance/interfaces/qunit.js b/test/acceptance/interfaces/qunit.jsindex dbdc5bb7..48aa21d6 100644--- a/test/acceptance/interfaces/qunit.js+++ b/test/acceptance/interfaces/qunit.js@@ -1,4 +1,3 @@-function ok(expr, msg) {if (!expr) throw new Error(msg);}@@ -21,4 +20,4 @@ suite('String');test('#length', function(){ok('foo'.length == 3);-});\ No newline at end of file+});diff --git a/test/acceptance/interfaces/tdd.js b/test/acceptance/interfaces/tdd.jsindex 33311dd6..1c6885ed 100644--- a/test/acceptance/interfaces/tdd.js+++ b/test/acceptance/interfaces/tdd.js@@ -1,4 +1,3 @@-suite('Array', function(){suite('#indexOf()', function(){var initialValue = 32;diff --git a/test/acceptance/misc/asyncOnly.js b/test/acceptance/misc/asyncOnly.jsindex e03251f3..7b7086a7 100644--- a/test/acceptance/misc/asyncOnly.js+++ b/test/acceptance/misc/asyncOnly.js@@ -1,4 +1,3 @@-describe('asyncOnly', function(){it('should display an error', function(){diff --git a/test/acceptance/misc/bail.js b/test/acceptance/misc/bail.jsindex 0628b2fb..a2c0c139 100644--- a/test/acceptance/misc/bail.js+++ b/test/acceptance/misc/bail.js@@ -1,4 +1,3 @@-describe('bail', function(){it('should only display this error', function(done){throw new Error('this should be displayed');diff --git a/test/acceptance/misc/cascade.js b/test/acceptance/misc/cascade.jsindex 0f884a00..b2dda4df 100644--- a/test/acceptance/misc/cascade.js+++ b/test/acceptance/misc/cascade.js@@ -1,4 +1,3 @@-describe('one', function(){before(function(){console.log('before one');diff --git a/test/acceptance/misc/grep.js b/test/acceptance/misc/grep.jsindex 9bfe0c5f..ec9f78f3 100644--- a/test/acceptance/misc/grep.js+++ b/test/acceptance/misc/grep.js@@ -1,4 +1,3 @@-describe('grep', function(){describe('fast', function(){it('should run fast', function(){diff --git a/test/acceptance/misc/many.js b/test/acceptance/misc/many.jsindex c479ae43..26538bc6 100644--- a/test/acceptance/misc/many.js+++ b/test/acceptance/misc/many.js@@ -24,4 +24,4 @@ describe('a load of tests', function(){addTest();}-})\ No newline at end of file+})diff --git a/test/acceptance/misc/nontty.js b/test/acceptance/misc/nontty.jsindex cd96f1fc..2372a660 100644--- a/test/acceptance/misc/nontty.js+++ b/test/acceptance/misc/nontty.js@@ -1,4 +1,3 @@-describe('tests for non-tty', function(){it('should pass', function(){diff --git a/test/acceptance/misc/only/bdd.js b/test/acceptance/misc/only/bdd.jsindex 56627ab3..ff14dcdf 100644--- a/test/acceptance/misc/only/bdd.js+++ b/test/acceptance/misc/only/bdd.js@@ -1,4 +1,3 @@-describe('should only run .only test in this bdd suite', function() {it('should not run this test', function() {var zero = 0;@@ -12,4 +11,4 @@ describe('should only run .only test in this bdd suite', function() {var zero = 0;zero.should.equal(1, 'this test should have been skipped');});-});\ No newline at end of file+});diff --git a/test/acceptance/misc/only/qunit.js b/test/acceptance/misc/only/qunit.jsindex e1d9ac1a..07c240f6 100644--- a/test/acceptance/misc/only/qunit.js+++ b/test/acceptance/misc/only/qunit.js@@ -1,4 +1,3 @@-function ok(expr, msg) {if (!expr) throw new Error(msg);}@@ -13,4 +12,4 @@ test.only('should run this test', function() {});test('should run this test, not (includes the title of the .only test)', function() {ok(0 === 1, 'this test should have been skipped');-});\ No newline at end of file+});diff --git a/test/acceptance/misc/only/tdd.js b/test/acceptance/misc/only/tdd.jsindex ed7e9063..cb6429a3 100644--- a/test/acceptance/misc/only/tdd.js+++ b/test/acceptance/misc/only/tdd.js@@ -1,4 +1,3 @@-suite('should only run .only test in this tdd suite', function() {test('should not run this test', function() {var zero = 0;@@ -12,4 +11,4 @@ suite('should only run .only test in this tdd suite', function() {var zero = 0;zero.should.equal(1, 'this test should have been skipped');});-});\ No newline at end of file+});diff --git a/test/acceptance/multiple.done.js b/test/acceptance/multiple.done.jsindex aeb88455..65537af9 100644--- a/test/acceptance/multiple.done.js+++ b/test/acceptance/multiple.done.js@@ -1,4 +1,3 @@-describe('multiple calls to done()', function(){beforeEach(function(done){done()@@ -13,4 +12,4 @@ describe('multiple calls to done()', function(){// done();});})-})\ No newline at end of file+})diff --git a/test/acceptance/pending.js b/test/acceptance/pending.jsindex cf738b27..4ef96370 100644--- a/test/acceptance/pending.js+++ b/test/acceptance/pending.js@@ -1,4 +1,3 @@-describe('pending', function(){it('should be allowed')-})\ No newline at end of file+})diff --git a/test/acceptance/require/require.js b/test/acceptance/require/require.jsindex 74dd0eb5..20f3e6d6 100644--- a/test/acceptance/require/require.js+++ b/test/acceptance/require/require.js@@ -1,4 +1,3 @@-describe('require test', function(){it('should require args in order', function(){var req = global.required;diff --git a/test/acceptance/root.js b/test/acceptance/root.jsindex 49a1e7fe..17738302 100644--- a/test/acceptance/root.js+++ b/test/acceptance/root.js@@ -1,4 +1,3 @@-var calls = [];before(function(){@@ -9,4 +8,4 @@ describe('root', function(){it('should be a valid suite', function(){calls.should.eql(['before']);})-})\ No newline at end of file+})diff --git a/test/acceptance/sort/alpha.js b/test/acceptance/sort/alpha.jsindex 365f39cd..7a530299 100644--- a/test/acceptance/sort/alpha.js+++ b/test/acceptance/sort/alpha.js@@ -4,4 +4,4 @@ describe('alpha', function(){throw new Error('alpha was not executed first');}});-});\ No newline at end of file+});diff --git a/test/acceptance/sort/beta.js b/test/acceptance/sort/beta.jsindex 3de3e0cc..0951f490 100644--- a/test/acceptance/sort/beta.js+++ b/test/acceptance/sort/beta.js@@ -2,4 +2,4 @@ describe('beta', function(){it('should be executed second', function(){global.beta = 1;});-});\ No newline at end of file+});diff --git a/test/acceptance/test.coffee b/test/acceptance/test.coffeeindex b1c470a6..8260940a 100644--- a/test/acceptance/test.coffee+++ b/test/acceptance/test.coffee@@ -3,4 +3,4 @@ obj = foo: 'bar'describe 'coffeescript', ->it 'should work', ->- obj.should.eql foo: 'bar'\ No newline at end of file+ obj.should.eql foo: 'bar'diff --git a/test/acceptance/timeout.js b/test/acceptance/timeout.jsindex a12f2fb1..f61c3ba5 100644--- a/test/acceptance/timeout.js+++ b/test/acceptance/timeout.js@@ -1,4 +1,3 @@-describe('timeouts', function(){beforeEach(function(done){// uncommentdiff --git a/test/acceptance/uncaught.js b/test/acceptance/uncaught.jsindex 7349595d..f228266e 100644--- a/test/acceptance/uncaught.js+++ b/test/acceptance/uncaught.js@@ -1,4 +1,3 @@-describe('uncaught', function(){beforeEach(function(done){process.nextTick(function(){@@ -14,4 +13,4 @@ describe('uncaught', function(){done();})})-})\ No newline at end of file+})diff --git a/test/browser/large.js b/test/browser/large.jsindex 1250abae..56757eae 100644--- a/test/browser/large.js+++ b/test/browser/large.js@@ -1,4 +1,3 @@-var n = 30;while (n--) {describe('Array ' + n, function(){@@ -46,4 +45,4 @@ describe('something', function(){done();}, 1);})-})\ No newline at end of file+})diff --git a/test/grep.js b/test/grep.jsindex b4be3715..c2a88217 100644--- a/test/grep.js+++ b/test/grep.js@@ -1,4 +1,3 @@-var Mocha = require('../');describe('Mocha', function(){diff --git a/test/hook.async.js b/test/hook.async.jsindex fd62932c..ae6e642d 100644--- a/test/hook.async.js+++ b/test/hook.async.js@@ -1,4 +1,3 @@-describe('async', function(){var calls = [];diff --git a/test/hook.err.js b/test/hook.err.jsindex f28ecdd5..d7e6c2e4 100644--- a/test/hook.err.js+++ b/test/hook.err.js@@ -195,7 +195,7 @@ describe('hook error handling', function(){after(function(){calls.push("1.2 after");});- });+ });afterEach(function() {calls.push('1 after each')@@ -244,7 +244,7 @@ describe('hook error handling', function(){after(function(){calls.push("2.2 after");});- });+ });afterEach(function() {calls.push('2 after each')@@ -293,4 +293,4 @@ describe('hook error handling', function(){});})-})\ No newline at end of file+})diff --git a/test/hook.sync.js b/test/hook.sync.jsindex c446c6aa..1d40f5d0 100644--- a/test/hook.sync.js+++ b/test/hook.sync.js@@ -1,4 +1,3 @@-describe('serial', function(){var calls = [];@@ -95,4 +94,4 @@ describe('serial', function(){, 'parent after']);})})-})\ No newline at end of file+})diff --git a/test/hook.sync.nested.js b/test/hook.sync.nested.jsindex 94c00da5..b87c2229 100644--- a/test/hook.sync.nested.js+++ b/test/hook.sync.nested.js@@ -1,4 +1,3 @@-describe('serial', function(){describe('nested', function(){var calls = [];diff --git a/test/hook.timeout.js b/test/hook.timeout.jsindex 5b158e27..155c1e95 100644--- a/test/hook.timeout.js+++ b/test/hook.timeout.js@@ -1,4 +1,3 @@-before(function(done){this.timeout(100);setTimeout(done, 50);@@ -6,4 +5,4 @@ before(function(done){it('should work', function(done) {done();-});\ No newline at end of file+});diff --git a/test/http.meta.2.js b/test/http.meta.2.jsindex bcc6b6b3..a630f704 100644--- a/test/http.meta.2.js+++ b/test/http.meta.2.js@@ -1,4 +1,3 @@-var http = require('http');var server = http.createServer(function(req, res){@@ -79,4 +78,4 @@ describe('http server', function(){.set('Accept', 'application/json').should.respond('["tobi","loki","jane"]')-})\ No newline at end of file+})diff --git a/test/http.meta.js b/test/http.meta.jsindex 9ae90d86..00c3f9c8 100644--- a/test/http.meta.js+++ b/test/http.meta.js@@ -1,4 +1,3 @@-var http = require('http');var server = http.createServer(function(req, res){@@ -49,4 +48,4 @@ describe('http requests', function(){it('should respond with users',get('/users', '["tobi","loki","jane"]', { Accept: 'application/json' }))})-})\ No newline at end of file+})diff --git a/test/jsapi/index.js b/test/jsapi/index.jsindex 5b5c169a..2dcdd6dc 100644--- a/test/jsapi/index.js+++ b/test/jsapi/index.js@@ -1,4 +1,3 @@-var Mocha = require('../../'), path = require('path');diff --git a/test/reporters/json.js b/test/reporters/json.jsindex 56173bf3..f071e754 100644--- a/test/reporters/json.js+++ b/test/reporters/json.js@@ -1,4 +1,3 @@-var Mocha = require('../../'), Suite = Mocha.Suite, Runner = Mocha.Runnerdiff --git a/test/runnable.js b/test/runnable.jsindex 6127b4ea..3a22e3d0 100644--- a/test/runnable.js+++ b/test/runnable.js@@ -1,4 +1,3 @@-var mocha = require('../'), Runnable = mocha.Runnable, EventEmitter = require('events').EventEmitter;diff --git a/test/runner.js b/test/runner.jsindex f5ee8cc1..04cc583d 100644--- a/test/runner.js+++ b/test/runner.js@@ -1,4 +1,3 @@-var mocha = require('../'), Suite = mocha.Suite, Runner = mocha.Runnerdiff --git a/test/suite.js b/test/suite.jsindex e457d64a..011b3fb2 100644--- a/test/suite.js+++ b/test/suite.js@@ -1,4 +1,3 @@-var mocha = require('../'), Context = mocha.Context, Suite = mocha.Suitediff --git a/test/utils.js b/test/utils.jsindex f5ea9dc1..f8d6dcfb 100644--- a/test/utils.js+++ b/test/utils.js@@ -1,4 +1,3 @@-var mocha = require('..');var utils = mocha.utils;var clean = utils.clean;