Permalink
Browse files

make project follow editorconfig rules

  • Loading branch information...
1 parent 94dd386 commit c6747a67981b8f83b7070c4697bb57b69d8a2e75 @slang800 slang800 committed Sep 29, 2014
Showing with 49 additions and 119 deletions.
  1. +1 −2 index.js
  2. +0 −1 lib/browser/debug.js
  3. +4 −4 lib/browser/escape-string-regexp.js
  4. +1 −2 lib/browser/events.js
  5. +6 −6 lib/browser/progress.js
  6. +0 −1 lib/browser/tty.js
  7. +0 −1 lib/context.js
  8. +0 −1 lib/hook.js
  9. +0 −1 lib/interfaces/bdd.js
  10. +0 −1 lib/interfaces/exports.js
  11. +0 −1 lib/interfaces/index.js
  12. +0 −1 lib/interfaces/qunit.js
  13. +0 −1 lib/interfaces/tdd.js
  14. +0 −1 lib/reporters/base.js
  15. +0 −1 lib/reporters/doc.js
  16. +0 −1 lib/reporters/dot.js
  17. +1 −2 lib/reporters/html-cov.js
  18. +0 −1 lib/reporters/html.js
  19. +0 −1 lib/reporters/index.js
  20. +0 −1 lib/reporters/json-cov.js
  21. +1 −2 lib/reporters/json-stream.js
  22. +0 −1 lib/reporters/json.js
  23. +1 −2 lib/reporters/landing.js
  24. +0 −1 lib/reporters/list.js
  25. +1 −1 lib/reporters/markdown.js
  26. +0 −1 lib/reporters/min.js
  27. +0 −1 lib/reporters/spec.js
  28. +0 −1 lib/reporters/tap.js
  29. +1 −1 lib/reporters/templates/style.html
  30. +0 −1 lib/reporters/xunit.js
  31. +0 −1 lib/runnable.js
  32. +0 −1 lib/suite.js
  33. +0 −1 lib/test.js
  34. +1 −2 media/logo.svg
  35. +7 −7 mocha.js
  36. +0 −1 support/compile.js
  37. +1 −1 support/foot.js
  38. +0 −1 test/acceptance/context.js
  39. +0 −1 test/acceptance/diffs.js
  40. +0 −1 test/acceptance/duration.js
  41. +1 −1 test/acceptance/fixtures/css.in
  42. +1 −1 test/acceptance/fixtures/css.out
  43. +0 −1 test/acceptance/fs.js
  44. +0 −1 test/acceptance/glob/glob.js
  45. +0 −1 test/acceptance/globals.js
  46. +1 −2 test/acceptance/http.js
  47. +0 −1 test/acceptance/interfaces/bdd.js
  48. +0 −1 test/acceptance/interfaces/exports.js
  49. +1 −2 test/acceptance/interfaces/qunit.js
  50. +0 −1 test/acceptance/interfaces/tdd.js
  51. +0 −1 test/acceptance/misc/asyncOnly.js
  52. +0 −1 test/acceptance/misc/bail.js
  53. +0 −1 test/acceptance/misc/cascade.js
  54. +0 −1 test/acceptance/misc/grep.js
  55. +1 −1 test/acceptance/misc/many.js
  56. +0 −1 test/acceptance/misc/nontty.js
  57. +1 −2 test/acceptance/misc/only/bdd.js
  58. +1 −2 test/acceptance/misc/only/qunit.js
  59. +1 −2 test/acceptance/misc/only/tdd.js
  60. +1 −2 test/acceptance/multiple.done.js
  61. +1 −2 test/acceptance/pending.js
  62. +0 −1 test/acceptance/require/require.js
  63. +1 −2 test/acceptance/root.js
  64. +1 −1 test/acceptance/sort/alpha.js
  65. +1 −1 test/acceptance/sort/beta.js
  66. +1 −1 test/acceptance/test.coffee
  67. +0 −1 test/acceptance/timeout.js
  68. +1 −2 test/acceptance/uncaught.js
  69. +1 −2 test/browser/large.js
  70. +0 −1 test/grep.js
  71. +0 −1 test/hook.async.js
  72. +3 −3 test/hook.err.js
  73. +1 −2 test/hook.sync.js
  74. +0 −1 test/hook.sync.nested.js
  75. +1 −2 test/hook.timeout.js
  76. +1 −2 test/http.meta.2.js
  77. +1 −2 test/http.meta.js
  78. +0 −1 test/jsapi/index.js
  79. +0 −1 test/reporters/json.js
  80. +0 −1 test/runnable.js
  81. +0 −1 test/runner.js
  82. +0 −1 test/suite.js
  83. +0 −1 test/utils.js
View
@@ -1,4 +1,3 @@
-
module.exports = process.env.COV
? require('./lib-cov/mocha')
- : require('./lib/mocha');
+ : require('./lib/mocha');
@@ -1,4 +1,3 @@
-
module.exports = function(type){
return function(){
}
@@ -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, '\\$&');
};
@@ -1,4 +1,3 @@
-
/**
* Module exports.
*/
@@ -175,4 +174,4 @@ EventEmitter.prototype.emit = function (name) {
}
return true;
-};
+};
@@ -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 circle
ctx.strokeStyle = '#9f9f9f';
ctx.beginPath();
ctx.arc(x, y, rad, 0, angle, false);
ctx.stroke();
-
+
// inner circle
ctx.strokeStyle = '#eee';
ctx.beginPath();
ctx.arc(x, y, rad - 1, 0, angle, true);
ctx.stroke();
-
+
// text
var text = this._text || (percent | 0) + '%'
, w = ctx.measureText(text).width;
-
+
ctx.fillText(
text
, x - w / 2 + 1
View
@@ -1,4 +1,3 @@
-
exports.isatty = function(){
return true;
};
View
@@ -1,4 +1,3 @@
-
/**
* Expose `Context`.
*/
View
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
@@ -1,4 +1,3 @@
-
exports.bdd = require('./bdd');
exports.tdd = require('./tdd');
exports.qunit = require('./qunit');
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
@@ -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';
-}
+}
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
@@ -1,4 +1,3 @@
-
exports.Base = require('./base');
exports.Dot = require('./dot');
exports.Doc = require('./doc');
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
@@ -58,4 +57,4 @@ function clean(test) {
, fullTitle: test.fullTitle()
, duration: test.duration
}
-}
+}
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
@@ -94,4 +93,4 @@ function Landing(runner) {
* Inherit from `Base.prototype`.
*/
-Landing.prototype.__proto__ = Base.prototype;
+Landing.prototype.__proto__ = Base.prototype;
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
@@ -88,4 +88,4 @@ function Markdown(runner) {
process.stdout.write(generateTOC(runner.suite));
process.stdout.write(buf);
});
-}
+}
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
@@ -317,4 +317,4 @@
code .string { color: #5890AD }
code .keyword { color: #8A6343 }
code .number { color: #2F6FAD }
-</style>
+</style>
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
View
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
View
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
View
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
View
@@ -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>
View
@@ -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 circle
ctx.strokeStyle = '#9f9f9f';
ctx.beginPath();
ctx.arc(x, y, rad, 0, angle, false);
ctx.stroke();
-
+
// inner circle
ctx.strokeStyle = '#eee';
ctx.beginPath();
ctx.arc(x, y, rad - 1, 0, angle, true);
ctx.stroke();
-
+
// text
var 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;
-})();
+})();
View
@@ -1,4 +1,3 @@
-
/**
* Module dependencies.
*/
View
@@ -1 +1 @@
-})();
+})();
@@ -1,4 +1,3 @@
-
describe('Context', function(){
beforeEach(function(){
this.calls = ['before'];
@@ -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');
@@ -1,4 +1,3 @@
-
describe('durations', function(){
describe('when slow', function(){
it('should highlight in red', function(done){
@@ -6,4 +6,4 @@ body {
a {
color: blue
-}
+}
@@ -10,4 +10,4 @@ a {
foo {
bar: 'baz';
-}
+}
@@ -1,4 +1,3 @@
-
var fs = require('fs');
describe('fs.readFile()', function(){
@@ -1,4 +1,3 @@
-
describe('globbing test', function(){
it('should find this test', function(){
// see glob.sh for details
@@ -1,4 +1,3 @@
-
describe('global leaks', function(){
before(function(){
// uncomment to test
@@ -1,4 +1,3 @@
-
var http = require('http');
var server = http.createServer(function(req, res){
@@ -14,4 +13,4 @@ describe('http', function(){
done();
})
})
-})
+})
@@ -1,4 +1,3 @@
-
describe('Array', function(){
describe('#indexOf()', function(){
it('should return -1 when the value is not present', function(){
@@ -1,4 +1,3 @@
-
var calls = [];
exports.Array = {
@@ -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);
-});
+});
@@ -1,4 +1,3 @@
-
suite('Array', function(){
suite('#indexOf()', function(){
var initialValue = 32;
@@ -1,4 +1,3 @@
-
describe('asyncOnly', function(){
it('should display an error', function(){
@@ -1,4 +1,3 @@
-
describe('bail', function(){
it('should only display this error', function(done){
throw new Error('this should be displayed');
@@ -1,4 +1,3 @@
-
describe('one', function(){
before(function(){
console.log('before one');
Oops, something went wrong.

0 comments on commit c6747a6

Please sign in to comment.