@@ -90,7 +90,7 @@ describe('app.router', function(){
90
90
it ( 'should decode correct params' , function ( done ) {
91
91
var app = express ( ) ;
92
92
93
- app . get ( '/:name' , function ( req , res , next ) {
93
+ app . get ( '/:name' , function ( req , res ) {
94
94
res . send ( req . params . name ) ;
95
95
} ) ;
96
96
@@ -102,7 +102,7 @@ describe('app.router', function(){
102
102
it ( 'should not accept params in malformed paths' , function ( done ) {
103
103
var app = express ( ) ;
104
104
105
- app . get ( '/:name' , function ( req , res , next ) {
105
+ app . get ( '/:name' , function ( req , res ) {
106
106
res . send ( req . params . name ) ;
107
107
} ) ;
108
108
@@ -114,7 +114,7 @@ describe('app.router', function(){
114
114
it ( 'should not decode spaces' , function ( done ) {
115
115
var app = express ( ) ;
116
116
117
- app . get ( '/:name' , function ( req , res , next ) {
117
+ app . get ( '/:name' , function ( req , res ) {
118
118
res . send ( req . params . name ) ;
119
119
} ) ;
120
120
@@ -126,7 +126,7 @@ describe('app.router', function(){
126
126
it ( 'should work with unicode' , function ( done ) {
127
127
var app = express ( ) ;
128
128
129
- app . get ( '/:name' , function ( req , res , next ) {
129
+ app . get ( '/:name' , function ( req , res ) {
130
130
res . send ( req . params . name ) ;
131
131
} ) ;
132
132
@@ -910,7 +910,7 @@ describe('app.router', function(){
910
910
next ( ) ;
911
911
} ) ;
912
912
913
- app . get ( '/bar' , function ( req , res ) {
913
+ app . get ( '/bar' , function ( ) {
914
914
assert ( 0 ) ;
915
915
} ) ;
916
916
@@ -919,7 +919,7 @@ describe('app.router', function(){
919
919
next ( ) ;
920
920
} ) ;
921
921
922
- app . get ( '/foo' , function ( req , res , next ) {
922
+ app . get ( '/foo' , function ( req , res ) {
923
923
calls . push ( '/foo 2' ) ;
924
924
res . json ( calls )
925
925
} ) ;
@@ -939,7 +939,7 @@ describe('app.router', function(){
939
939
next ( 'route' )
940
940
}
941
941
942
- app . get ( '/foo' , fn , function ( req , res , next ) {
942
+ app . get ( '/foo' , fn , function ( req , res ) {
943
943
res . end ( 'failure' )
944
944
} ) ;
945
945
@@ -964,11 +964,11 @@ describe('app.router', function(){
964
964
next ( 'router' )
965
965
}
966
966
967
- router . get ( '/foo' , fn , function ( req , res , next ) {
967
+ router . get ( '/foo' , fn , function ( req , res ) {
968
968
res . end ( 'failure' )
969
969
} )
970
970
971
- router . get ( '/foo' , function ( req , res , next ) {
971
+ router . get ( '/foo' , function ( req , res ) {
972
972
res . end ( 'failure' )
973
973
} )
974
974
@@ -995,7 +995,7 @@ describe('app.router', function(){
995
995
next ( ) ;
996
996
} ) ;
997
997
998
- app . get ( '/bar' , function ( req , res ) {
998
+ app . get ( '/bar' , function ( ) {
999
999
assert ( 0 ) ;
1000
1000
} ) ;
1001
1001
@@ -1004,7 +1004,7 @@ describe('app.router', function(){
1004
1004
next ( new Error ( 'fail' ) ) ;
1005
1005
} ) ;
1006
1006
1007
- app . get ( '/foo' , function ( req , res , next ) {
1007
+ app . get ( '/foo' , function ( ) {
1008
1008
assert ( 0 ) ;
1009
1009
} ) ;
1010
1010
0 commit comments