diff --git a/.eslintrc b/.eslintrc index d4840579..ed177845 100644 --- a/.eslintrc +++ b/.eslintrc @@ -9,6 +9,10 @@ }, "rules": { "comma-dangle": ["error", "never"], + "comma-spacing": [2, { + "before": false, + "after": true, + }], "indent": ["error", 4], "key-spacing": "error", "quotes": ["error", "single", { diff --git a/example/array.js b/example/array.js index 8b998041..cb17d42b 100644 --- a/example/array.js +++ b/example/array.js @@ -25,7 +25,7 @@ test('array', function (t) { [ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ] ]; - Function(['fn','g'], output)( + Function(['fn', 'g'], output)( function (xs) { t.same(arrays.shift(), xs); return xs; diff --git a/example/fail.js b/example/fail.js index 28c6ac71..4373c76b 100644 --- a/example/fail.js +++ b/example/fail.js @@ -25,7 +25,7 @@ test('array', function (t) { [ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ] ]; - Function(['fn','g'], output)( + Function(['fn', 'g'], output)( function (xs) { t.same(arrays.shift(), xs); return xs; diff --git a/example/nested_fail.js b/example/nested_fail.js index 8013a48d..44ea3fd1 100644 --- a/example/nested_fail.js +++ b/example/nested_fail.js @@ -34,7 +34,7 @@ test('nested array test', function (t) { [ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ] ]; - Function(['fn','g'], output)( + Function(['fn', 'g'], output)( function (xs) { t.same(arrays.shift(), xs); return xs; diff --git a/example/too_many_fail.js b/example/too_many_fail.js index e5780be0..e374008f 100644 --- a/example/too_many_fail.js +++ b/example/too_many_fail.js @@ -25,7 +25,7 @@ test('array', function (t) { [ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ] ]; - Function(['fn','g'], output)( + Function(['fn', 'g'], output)( function (xs) { t.same(arrays.shift(), xs); return xs; diff --git a/test/array.js b/test/array.js index 7a27038a..502b3f97 100644 --- a/test/array.js +++ b/test/array.js @@ -50,7 +50,7 @@ tap.test('array test', function (tt) { [ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ] ]; - Function(['fn','g'], output)( + Function(['fn', 'g'], output)( function (xs) { t.same(arrays.shift(), xs); return xs; diff --git a/test/browser/asserts.js b/test/browser/asserts.js index 77611f56..690597ca 100644 --- a/test/browser/asserts.js +++ b/test/browser/asserts.js @@ -6,6 +6,6 @@ test(function (t) { t.plan(4); t.ok(true); t.equal(3, 1+2); - t.deepEqual([1,2,[3,4]], [1,2,[3,4]]); - t.notDeepEqual([1,2,[3,4,5]], [1,2,[3,4]]); + t.deepEqual([1, 2, [3, 4]], [1, 2, [3, 4]]); + t.notDeepEqual([1, 2, [3, 4, 5]], [1, 2, [3, 4]]); }); diff --git a/test/exit/fail.js b/test/exit/fail.js index a976d4ce..45fc1789 100644 --- a/test/exit/fail.js +++ b/test/exit/fail.js @@ -25,7 +25,7 @@ test('array', function (t) { [ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ] ]; - Function(['fn','g'], output)( + Function(['fn', 'g'], output)( function (xs) { t.same(arrays.shift(), xs); return xs; diff --git a/test/exit/ok.js b/test/exit/ok.js index 084692f5..1c68c15e 100644 --- a/test/exit/ok.js +++ b/test/exit/ok.js @@ -26,7 +26,7 @@ test('array', function (t) { [ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ] ]; - Function(['fn','g'], output)( + Function(['fn', 'g'], output)( function (xs) { t.same(arrays.shift(), xs); return xs; diff --git a/test/exit/too_few.js b/test/exit/too_few.js index d92fe5c1..cd347e54 100644 --- a/test/exit/too_few.js +++ b/test/exit/too_few.js @@ -25,7 +25,7 @@ test('array', function (t) { [ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ] ]; - Function(['fn','g'], output)( + Function(['fn', 'g'], output)( function (xs) { t.same(arrays.shift(), xs); return xs; diff --git a/test/fail.js b/test/fail.js index c5dab576..78642c84 100644 --- a/test/fail.js +++ b/test/fail.js @@ -67,7 +67,7 @@ tap.test('array test', function (tt) { [ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ] ]; - Function(['fn','g'], output)( + Function(['fn', 'g'], output)( function (xs) { t.same(arrays.shift(), xs); return xs; diff --git a/test/nested.js b/test/nested.js index d86e94cd..2dd19583 100644 --- a/test/nested.js +++ b/test/nested.js @@ -65,7 +65,7 @@ tap.test('array test', function (tt) { [ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ] ]; - Function(['fn','g'], output)( + Function(['fn', 'g'], output)( function (xs) { t.same(arrays.shift(), xs); return xs; diff --git a/test/too_many.js b/test/too_many.js index 530ceb2a..f6ba5582 100644 --- a/test/too_many.js +++ b/test/too_many.js @@ -68,7 +68,7 @@ tap.test('array test', function (tt) { [ [ 1, 2, [ 3, 4 ] ], [ 5, 6 ] ] ]; - Function(['fn','g'], output)( + Function(['fn', 'g'], output)( function (xs) { t.same(arrays.shift(), xs); return xs;