We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe93005 commit 52d9781Copy full SHA for 52d9781
test/app.router.js
@@ -55,6 +55,17 @@ describe('app.router', function(){
55
.expect(200, done)
56
})
57
58
+ it('should not support ' + method.toUpperCase() + ' without a path', function () {
59
+ if (method === 'get' || (method === 'query' && shouldSkipQuery(process.versions.node))) {
60
+ this.skip();
61
+ }
62
+ var app = express();
63
+
64
+ assert.throws(function () {
65
+ app[method](function (req, res) { });
66
+ });
67
68
69
it('should reject numbers for app.' + method, function(){
70
var app = express();
71
assert.throws(app[method].bind(app, '/', 3), /Number/)
0 commit comments