Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cf9f662

Browse files
committedFeb 24, 2022
tests: fix position of res.sendfile(path, options) test
1 parent 8da8f79 commit cf9f662

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed
 

‎test/res.sendFile.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -803,19 +803,19 @@ describe('res', function(){
803803
})
804804
})
805805
})
806-
})
807806

808-
describe('.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()
811810

812-
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+
})
815814

816-
request(app)
817-
.get('/')
818-
.expect(200, 'to', done)
815+
request(app)
816+
.get('/')
817+
.expect(200, 'to', done)
818+
})
819819
})
820820
})
821821

0 commit comments

Comments
 (0)
Please sign in to comment.