Skip to content
Myr

lint: remove unused function arguments in Route tests

Before adoption: this commit came in with the history the project adopted, so no landing records it.

closes #5137

authored by Rakesh Bisht · committed by Douglas Christopher Wilson · parent f540c3b · Browse files · 1 file+3 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−3 removed

  • tests:+3 added−3 removed

1 file+3 added−3 removed

modified:test/Route.js+3 added-3 removed
122 unmodified lines
123 it('should limit to just .VERB', function(done){124 var req = { method: 'POST', url: '/' };125 var route = new Route('');126127 route.get(function(req, res, next) {127 route.get(function () {128 throw new Error('not me!');129 })130131 route.post(function(req, res, next) {
65 unmodified lines
197 it('should handle throw', function(done) {198 var req = { order: '', method: 'GET', url: '/' };199 var route = new Route('');200201 route.all(function(req, res, next){201 route.all(function () {202 throw new Error('foobar');203 });204205 route.all(function(req, res, next){
17 unmodified lines
223 it('should handle throwing inside error handlers', function(done) {224 var req = { method: 'GET', url: '/' };225 var route = new Route('');226227 route.get(function(req, res, next){227 route.get(function () {228 throw new Error('boom!');229 });230231 route.get(function(err, req, res, next){
43 unmodified lines