remove unneeded next func

dev
Roman Burunkov 5 years ago committed by GitHub
parent 8229f3245f
commit 27e5b9b48a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      test/fileLimitUploads.spec.js

@ -47,7 +47,7 @@ describe('Test Single File Upload With File Size Limit', function() {
before(function() {
app = server.setup({
limits: {fileSize: 200 * 1024}, // set 200kb upload limit
limitHandler: (req, res, next) => { // set limit handler
limitHandler: (req, res) => { // set limit handler
res.writeHead(500, { Connection: 'close', 'Content-Type': 'application/json'});
res.end(JSON.stringify({response: 'Limit reached!'}));
limitHandlerRun = true;

Loading…
Cancel
Save