Skip to content
Myr

tests: add additional res.sendFile test

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

closes #2298

authored by Douglas Christopher Wilson · committed by Douglas Christopher Wilson · parent ad3ca25 · Browse files · 1 file+8 added−0 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+8 added−0 removed

  • tests:+8 added−0 removed

1 file+8 added−0 removed

modified:test/res.sendFile.js+8 added
7 unmodified lines
8var fixtures = path.join(__dirname, 'fixtures');910describe('res', function(){11 describe('.sendFile(path)', function () {12 it('should error missing path', function (done) {13 var app = createApp();1415 request(app)16 .get('/')17 .expect(500, /path.*required/, done);18 });1920 it('should transfer a file', function (done) {21 var app = createApp(path.resolve(fixtures, 'name.txt'));2223 request(app)
477 unmodified lines