Skip to content

Commit

Permalink
[Dev Deps] update tape, eslint, @ljharb/eslint-config
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Oct 4, 2015
1 parent 8cacfdc commit 1c3ddff
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .jscs.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
"WithStatement"
],

"requireObjectKeysOnNewLine": false,

"requireSpacesInAnonymousFunctionExpression": { "beforeOpeningRoundBrace": true, "beforeOpeningCurlyBrace": true },
"requireSpacesInNamedFunctionExpression": { "beforeOpeningCurlyBrace": true },
"disallowSpacesInNamedFunctionExpression": { "beforeOpeningRoundBrace": true },
Expand Down Expand Up @@ -109,6 +111,9 @@

"requirePaddingNewLinesBeforeExport": true,

"validateNewlineAfterArrayElements": {
},

"requirePaddingNewLinesAfterUseStrict": true,

"disallowArrowFunctions": true,
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@
"object-keys": "^1.0.7"
},
"devDependencies": {
"tape": "^4.2.0",
"tape": "^4.2.1",
"array-map": "^0.0.0",
"covert": "^1.1.0",
"jscs": "^2.2.1",
"nsp": "^1.1.0",
"eslint": "^1.5.1",
"@ljharb/eslint-config": "^1.2.0",
"eslint": "^1.6.0",
"@ljharb/eslint-config": "^1.3.0",
"@es-shims/api": "^1.0.0"
},
"testling": {
Expand Down
3 changes: 2 additions & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

var entries = require('../');
var test = require('tape');
var runTests = require('./tests');

test('as a function', function (t) {
t.test('bad array/this value', function (st) {
Expand All @@ -10,7 +11,7 @@ test('as a function', function (t) {
st.end();
});

require('./tests')(entries, t);
runTests(entries, t);

t.end();
});
4 changes: 3 additions & 1 deletion test/shimmed.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ var defineProperties = require('define-properties');
var isEnumerable = Object.prototype.propertyIsEnumerable;
var functionsHaveNames = function f() {}.name === 'f';

var runTests = require('./tests');

test('shimmed', function (t) {
t.equal(Object.entries.length, 1, 'Object.entries has a length of 1');
t.test('Function name', { skip: !functionsHaveNames }, function (st) {
Expand All @@ -28,7 +30,7 @@ test('shimmed', function (t) {
st.end();
});

require('./tests')(Object.entries, t);
runTests(Object.entries, t);

t.end();
});

0 comments on commit 1c3ddff

Please sign in to comment.