Skip to content

Commit

Permalink
[Dev Deps] update eslint, @ljharb/eslint-config, nsp, tape
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Nov 4, 2018
1 parent 9799c0d commit 91f9ee6
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
8 changes: 4 additions & 4 deletions package.json
Expand Up @@ -46,13 +46,13 @@
},
"devDependencies": {
"@es-shims/api": "^2.1.2",
"@ljharb/eslint-config": "^9.0.1",
"@ljharb/eslint-config": "^13.0.0",
"array-map": "^0.0.0",
"covert": "^1.1.0",
"eslint": "^3.11.1",
"eslint": "^5.8.0",
"jscs": "^3.0.7",
"nsp": "^2.6.2",
"tape": "^4.6.3"
"nsp": "^3.2.1",
"tape": "^4.9.1"
},
"testling": {
"files": "test/index.js",
Expand Down
5 changes: 4 additions & 1 deletion test/.eslintrc
@@ -1,8 +1,11 @@
{
"rules": {
"array-bracket-newline": 0,
"max-lines-per-function": 0,
"max-nested-callbacks": [2, 3],
"max-statements": [2, 12],
"max-statements-per-line": [2, { "max": 3 }],
"no-invalid-this": [1]
"no-invalid-this": [1],
"object-curly-newline": 0,
}
}
4 changes: 2 additions & 2 deletions test/index.js
Expand Up @@ -6,8 +6,8 @@ var runTests = require('./tests');

test('as a function', function (t) {
t.test('bad array/this value', function (st) {
st.throws(function () { entries(undefined); }, TypeError, 'undefined is not an object');
st.throws(function () { entries(null); }, TypeError, 'null is not an object');
st['throws'](function () { entries(undefined); }, TypeError, 'undefined is not an object');
st['throws'](function () { entries(null); }, TypeError, 'null is not an object');
st.end();
});

Expand Down
4 changes: 2 additions & 2 deletions test/shimmed.js
Expand Up @@ -25,8 +25,8 @@ test('shimmed', function (t) {
var supportsStrictMode = (function () { return typeof this === 'undefined'; }());

t.test('bad object value', { skip: !supportsStrictMode }, function (st) {
st.throws(function () { return Object.entries(undefined); }, TypeError, 'undefined is not an object');
st.throws(function () { return Object.entries(null); }, TypeError, 'null is not an object');
st['throws'](function () { return Object.entries(undefined); }, TypeError, 'undefined is not an object');
st['throws'](function () { return Object.entries(null); }, TypeError, 'null is not an object');
st.end();
});

Expand Down

0 comments on commit 91f9ee6

Please sign in to comment.