Skip to content
Myr

more test refactoring

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 7fd47c0 · Browse files · 1 file+9 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+9 added−2 removed

  • tests:+9 added−2 removed

1 file+9 added−2 removed

modified:test/response.test.js+9 added-2 removed
305 unmodified lines
306307 assert.response(app,308 { url: '/../express.test.js' },309 { body: 'Forbidden', status: 403 });310311 assert.response(app,312 { url: '/user.json' },312 { body: '{"name":"tj"}', status: 200, headers: { 'Content-Type': 'application/json' }});313 { body: '{"name":"tj"}'314 , status: 200, headers: { 'Content-Type': 'application/json' }});315316 assert.response(app,317 { url: '/hello.haml' },318 { body: '%p Hello World'315 { body: '%p Hello World', status: 200, headers: { 'Content-Type': 'application/octet-stream' }});319 , status: 200, headers: { 'Content-Type': 'application/octet-stream' }});320321 assert.response(app,322 { url: '/doesNotExist' },323 { body: 'Cannot GET /doesNotExist', status: 404 });324325 assert.response(app,326 { url: '/partials' },327 { body: 'Cannot GET /partials', status: 404 });328329 assert.response(app,330 { url: '/large.json' },331 { status: 200, headers: { 'Content-Type': 'application/json' }});332 },
213 unmodified lines