Skip to content
Myr

tests: fix position of res.sendfile(path, options) test

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

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

  • tests:+10 added−10 removed

1 file+10 added−10 removed

modified:test/res.sendFile.js+10 added-10 removed
801 unmodified lines
802 })803 })804 })805 })806})806808describe('.sendfile(path, options)', function () {809 it('should pass options to send module', function (done) {810 var app = express()807 describe('.sendfile(path, options)', function () {808 it('should pass options to send module', function (done) {809 var app = express()810812 app.use(function (req, res) {813 res.sendfile(path.resolve(fixtures, 'name.txt'), { start: 0, end: 1 })814 })811 app.use(function (req, res) {812 res.sendfile(path.resolve(fixtures, 'name.txt'), { start: 0, end: 1 })813 })814816 request(app)817 .get('/')818 .expect(200, 'to', done)815 request(app)816 .get('/')817 .expect(200, 'to', done)818 })819 })820})821822function createApp(path, options, fn) {
8 unmodified lines