File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,9 @@ let openConnections = {};
107107var app = express ( ) ;
108108var api = new ParseServer ( defaultConfiguration ) ;
109109app . use ( '/1' , api ) ;
110+ app . use ( '/1' , ( req , res ) => {
111+ fail ( 'should not call next' ) ;
112+ } ) ;
110113var server = app . listen ( port ) ;
111114server . on ( 'connection' , connection => {
112115 let key = `${ connection . remoteAddress } :${ connection . remotePort } ` ;
@@ -126,7 +129,9 @@ const reconfigureServer = changedConfiguration => {
126129 api = new ParseServer ( newConfiguration ) ;
127130 api . use ( require ( './testing-routes' ) . router ) ;
128131 app . use ( '/1' , api ) ;
129-
132+ app . use ( '/1' , ( req , res ) => {
133+ fail ( 'should not call next' ) ;
134+ } ) ;
130135 server = app . listen ( port ) ;
131136 server . on ( 'connection' , connection => {
132137 let key = `${ connection . remoteAddress } :${ connection . remotePort } ` ;
You can’t perform that action at this time.
0 commit comments