Skip to content
Myr

fixed some 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 b166fd7 · Browse files · 1 file+2 added−6 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−6 removed

  • tests:+2 added−6 removed

1 file+2 added−6 removed

modified:test/response.test.js+2 added-6 removed
494 unmodified lines
495 });496 });497 498 assert.response(app,499 { url: '/forum' },500 { body: 'got an error' });501 502 assert.response(app,499 { url: '/does-not-exist' },500 { body: 'Cannot GET /does-not-exist' });501 502 assert.response(app,
75 unmodified lines
578 });579 580 assert.response(app,581 { url: '/large.json', headers: { 'Range': 'basdytes=asdf' }},586 { body: 'Requested Range Not Satisfiable', status: 416 });582 { body: /Requested Range Not Satisfiable/, status: 416 });583 },584 585 'test #sendfile() Range invalid range': function(){586 var app = express.createServer();
5 unmodified lines
592 });593 594 assert.response(app,595 { url: '/large.json', headers: { 'Range': 'bytes=500-10' }},600 { body: 'Requested Range Not Satisfiable', status: 416 });596 { body: /Requested Range Not Satisfiable/, status: 416 });597 },598 599 'test #download()': function(beforeExit){600 var app = express.createServer()
169 unmodified lines