Skip to content
Myr

more tests

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 9fc3499 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • tests:+2 added−2 removed

1 file+2 added−2 removed

modified:test/response.test.js+2 added-2 removed
79 unmodified lines
80 { url: '/status' },81 { body: 'Not Found', status: 404, headers: { 'Content-Type': 'text/plain' }});82 assert.response(app,83 { url: '/error' },84 { body: 'Oh shit!', status: 500, headers: { 'Content-Type': 'text/plain' }});84 { body: 'Oh shit!', status: 500, headers: { 'Content-Type': 'text/plain', 'Content-Length': '8' }});85 assert.response(app,86 { url: '/buffer' },87 { body: 'wahoo!', headers: { 'Content-Type': 'application/octet-stream' }});87 { body: 'wahoo!', headers: { 'Content-Type': 'application/octet-stream', 'Content-Length': '6' }});88 assert.response(app,89 { url: '/noargs' },90 { status: 204 }, function(res){91 assert.equal(undefined, res.headers['content-type']);
320 unmodified lines