Skip to content

Commit

Permalink
chore: bump deps, fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Oct 12, 2023
1 parent 04884de commit 9a45a3b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
3 changes: 2 additions & 1 deletion .xo-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ module.exports = {
'prefer-spread': 'warn',
'unicorn/explicit-length-check': 'warn',
'unicorn/no-array-reduce': 'warn',
'unicorn/prefer-spread': 'warn'
'unicorn/prefer-spread': 'warn',
'unicorn/prefer-node-protocol': 'off'
}
};
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,27 @@
"path-to-regexp": "^6.2.1"
},
"devDependencies": {
"@commitlint/cli": "^17.0.3",
"@commitlint/config-conventional": "^17.0.3",
"@ladjs/env": "^3.0.0",
"ava": "^4.3.0",
"@commitlint/cli": "^17.7.2",
"@commitlint/config-conventional": "^17.7.0",
"@ladjs/env": "^4.0.0",
"ava": "^5.3.1",
"cross-env": "^7.0.3",
"eslint": "^8.19.0",
"eslint": "8.39.0",
"eslint-config-xo-lass": "^2.0.1",
"expect.js": "^0.3.1",
"fixpack": "^4.0.0",
"husky": "^8.0.1",
"jsdoc-to-markdown": "^7.1.1",
"koa": "^2.13.4",
"lint-staged": "^13.0.3",
"mocha": "^10.0.0",
"husky": "^8.0.3",
"jsdoc-to-markdown": "^8.0.0",
"koa": "^2.14.2",
"lint-staged": "^14.0.1",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"remark-cli": "^11.0.0",
"remark-cli": "^12.0.0",
"remark-preset-github": "^4.0.4",
"should": "^13.2.3",
"supertest": "^6.2.4",
"supertest": "^6.3.3",
"wrk": "^1.2.1",
"xo": "^0.50.0"
"xo": "0.53.1"
},
"engines": {
"node": ">= 12"
Expand Down
12 changes: 6 additions & 6 deletions test/lib/layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,21 +162,21 @@ describe('Layer', function () {
const notexistHandle = undefined;
(function () {
router.get('/foo', notexistHandle);
}.should.throw(
}).should.throw(
'get `/foo`: `middleware` must be a function, not `undefined`'
));
);

(function () {
router.get('foo router', '/foo', notexistHandle);
}.should.throw(
}).should.throw(
'get `foo router`: `middleware` must be a function, not `undefined`'
));
);

(function () {
router.post('/foo', function () {}, notexistHandle);
}.should.throw(
}).should.throw(
'post `/foo`: `middleware` must be a function, not `undefined`'
));
);
});
});

Expand Down

0 comments on commit 9a45a3b

Please sign in to comment.