test/acceptance/error.js JAVASCRIPT 30 lines View on github.com → Search inside
12var app = require('../../examples/error')3  , request = require('supertest');45describe('error', function(){6  describe('GET /', function(){7    it('should respond with 500', function(done){8      request(app)9        .get('/')10        .expect(500,done)11    })12  })1314  describe('GET /next', function(){15    it('should respond with 500', function(done){16      request(app)17        .get('/next')18        .expect(500,done)19    })20  })2122  describe('GET /missing', function(){23    it('should respond with 404', function(done){24      request(app)25        .get('/missing')26        .expect(404,done)27    })28  })29})

Code quality findings 1

Use let or const to avoid scope issues and hoisting
info correctness var-declaration
var app = require('../../examples/error')

Get this view in your editor

Same data, no extra tab — call code_get_file + code_get_findings over MCP from Claude/Cursor/Copilot.