test/acceptance/markdown.js JAVASCRIPT 22 lines View on github.com → Search inside
12var app = require('../../examples/markdown')3var request = require('supertest')45describe('markdown', function(){6  describe('GET /', function(){7    it('should respond with html', function(done){8      request(app)9        .get('/')10        .expect(/<h1[^>]*>Markdown Example<\/h1>/,done)11    })12  })1314  describe('GET /fail',function(){15    it('should respond with an error', function(done){16      request(app)17        .get('/fail')18        .expect(500,done)19    })20  })21})

Code quality findings 2

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

Get this view in your editor

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