We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6e53d7 commit 6797752Copy full SHA for 6797752
test/test.js
@@ -129,6 +129,17 @@ describe('errorHandler()', function () {
129
.expect(/<li> at/)
130
.expect(500, done)
131
})
132
+
133
+ it('should contain inspected object', function (done) {
134
+ request(createServer({ foo: 'bar', fizz: 'buzz' }))
135
+ .get('/')
136
+ .set('Accept', 'text/html')
137
+ .expect('Content-Type', /text\/html/)
138
+ .expect(/<title>Error<\/title>/)
139
+ .expect(/<h2><em>500<\/em> Error<\/h2>/)
140
+ .expect(/<li>{ foo: 'bar', fizz: 'buzz' }<\/li>/)
141
+ .expect(500, done)
142
+ })
143
144
145
describe('when "Accept: application/json"', function () {
0 commit comments