@@ -90,7 +90,7 @@ describe('app.router', function(){
9090 it ( 'should decode correct params' , function ( done ) {
9191 var app = express ( ) ;
9292
93- app . get ( '/:name' , function ( req , res , next ) {
93+ app . get ( '/:name' , function ( req , res ) {
9494 res . send ( req . params . name ) ;
9595 } ) ;
9696
@@ -102,7 +102,7 @@ describe('app.router', function(){
102102 it ( 'should not accept params in malformed paths' , function ( done ) {
103103 var app = express ( ) ;
104104
105- app . get ( '/:name' , function ( req , res , next ) {
105+ app . get ( '/:name' , function ( req , res ) {
106106 res . send ( req . params . name ) ;
107107 } ) ;
108108
@@ -114,7 +114,7 @@ describe('app.router', function(){
114114 it ( 'should not decode spaces' , function ( done ) {
115115 var app = express ( ) ;
116116
117- app . get ( '/:name' , function ( req , res , next ) {
117+ app . get ( '/:name' , function ( req , res ) {
118118 res . send ( req . params . name ) ;
119119 } ) ;
120120
@@ -126,7 +126,7 @@ describe('app.router', function(){
126126 it ( 'should work with unicode' , function ( done ) {
127127 var app = express ( ) ;
128128
129- app . get ( '/:name' , function ( req , res , next ) {
129+ app . get ( '/:name' , function ( req , res ) {
130130 res . send ( req . params . name ) ;
131131 } ) ;
132132
@@ -910,7 +910,7 @@ describe('app.router', function(){
910910 next ( ) ;
911911 } ) ;
912912
913- app . get ( '/bar' , function ( req , res ) {
913+ app . get ( '/bar' , function ( ) {
914914 assert ( 0 ) ;
915915 } ) ;
916916
@@ -919,7 +919,7 @@ describe('app.router', function(){
919919 next ( ) ;
920920 } ) ;
921921
922- app . get ( '/foo' , function ( req , res , next ) {
922+ app . get ( '/foo' , function ( req , res ) {
923923 calls . push ( '/foo 2' ) ;
924924 res . json ( calls )
925925 } ) ;
@@ -939,7 +939,7 @@ describe('app.router', function(){
939939 next ( 'route' )
940940 }
941941
942- app . get ( '/foo' , fn , function ( req , res , next ) {
942+ app . get ( '/foo' , fn , function ( req , res ) {
943943 res . end ( 'failure' )
944944 } ) ;
945945
@@ -964,11 +964,11 @@ describe('app.router', function(){
964964 next ( 'router' )
965965 }
966966
967- router . get ( '/foo' , fn , function ( req , res , next ) {
967+ router . get ( '/foo' , fn , function ( req , res ) {
968968 res . end ( 'failure' )
969969 } )
970970
971- router . get ( '/foo' , function ( req , res , next ) {
971+ router . get ( '/foo' , function ( req , res ) {
972972 res . end ( 'failure' )
973973 } )
974974
@@ -995,7 +995,7 @@ describe('app.router', function(){
995995 next ( ) ;
996996 } ) ;
997997
998- app . get ( '/bar' , function ( req , res ) {
998+ app . get ( '/bar' , function ( ) {
999999 assert ( 0 ) ;
10001000 } ) ;
10011001
@@ -1004,7 +1004,7 @@ describe('app.router', function(){
10041004 next ( new Error ( 'fail' ) ) ;
10051005 } ) ;
10061006
1007- app . get ( '/foo' , function ( req , res , next ) {
1007+ app . get ( '/foo' , function ( ) {
10081008 assert ( 0 ) ;
10091009 } ) ;
10101010
0 commit comments