Skip to content
Myr

build: support io.js 1.x

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

closes #2539

authored by Douglas Christopher Wilson · committed by Douglas Christopher Wilson · parent 4597e11 · Browse files · 4 files+10 added−14 removed
This commit

State

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

Diff stats

4 files+10 added−14 removed

  • tests:+6 added−14 removed
  • other:+4 added−0 removed

4 files+10 added−14 removed

modified:test/res.send.js+2 added-5 removed
14 unmodified lines
1516 request(app)17 .get('/')18 .expect('Content-Length', '0')19 .expect('', done);19 .expect(200, '', done);20 })21 })2223 describe('.send(undefined)', function(){
5 unmodified lines
29 });3031 request(app)32 .get('/')33 .expect('', function(req, res){34 res.header.should.not.have.property('content-length');35 done();36 });33 .expect(200, '', done);34 })35 })3637 describe('.send(code)', function(){
522 unmodified lines
modified:test/res.sendFile.js+4 added-9 removed
386 unmodified lines
387 });388 });389390 it('should invoke the callback on 404', function(done){391 var app = express()392 , calls = 0;391 var app = express();392 var calls = 0;393394 app.use(function(req, res){395 res.sendfile('test/fixtures/nope.html', function(err){396 ++calls;396 assert.equal(calls++, 0);397 assert(!res.headersSent);398 res.send(err.message);399 });400 });401402 request(app)403 .get('/')404 .end(function(err, res){405 assert(1 == calls, 'called too many times');406 res.text.should.startWith("ENOENT, stat");407 res.statusCode.should.equal(200);408 done();409 });404 .expect(200, /^ENOENT.*?, stat/, done);405 })406407 it('should not override manual content-types', function(done){408 var app = express();
319 unmodified lines
modified:.travis.yml+2 added
modified:appveyor.yml+2 added