diff --git a/test/test.js b/test/test.js index dea8d9f..129f464 100644 --- a/test/test.js +++ b/test/test.js @@ -129,6 +129,17 @@ describe('errorHandler()', function () { .expect(/
  •    at/) .expect(500, done) }) + + it('should contain inspected object', function (done) { + request(createServer({ foo: 'bar', fizz: 'buzz' })) + .get('/') + .set('Accept', 'text/html') + .expect('Content-Type', /text\/html/) + .expect(/Error<\/title>/) + .expect(/<h2><em>500<\/em> Error<\/h2>/) + .expect(/<li>{ foo: 'bar', fizz: 'buzz' }<\/li>/) + .expect(500, done) + }) }) describe('when "Accept: application/json"', function () {