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 3, 2018
1 parent f35eb85 commit 13c5dd1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@
},
"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",
"nsp": "^3.2.1",
"object-keys": "^1.0.12",
"tape": "^4.6.3"
"tape": "^4.9.1"
},
"testling": {
"files": "test/index.js",
Expand Down
3 changes: 3 additions & 0 deletions test/.eslintrc
Original file line number Diff line number Diff line change
@@ -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": 2 }],
"no-invalid-this": [1],
"object-curly-newline": 0,
}
}
4 changes: 2 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
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 () { values(undefined); }, TypeError, 'undefined is not an object');
st.throws(function () { values(null); }, TypeError, 'null is not an object');
st['throws'](function () { values(undefined); }, TypeError, 'undefined is not an object');
st['throws'](function () { values(null); }, TypeError, 'null is not an object');
st.end();
});

Expand Down
4 changes: 2 additions & 2 deletions test/shimmed.js
Original file line number Diff line number Diff line change
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.values(undefined); }, TypeError, 'undefined is not an object');
st.throws(function () { return Object.values(null); }, TypeError, 'null is not an object');
st['throws'](function () { return Object.values(undefined); }, TypeError, 'undefined is not an object');
st['throws'](function () { return Object.values(null); }, TypeError, 'null is not an object');
st.end();
});

Expand Down

0 comments on commit 13c5dd1

Please sign in to comment.