Add express.raw to parse bodies into Buffer

closes #3708
This commit is contained in:
Amit Zur
2018-08-08 07:42:00 +03:00
committed by Douglas Christopher Wilson
parent 60aacac167
commit 0bcdd88dd0
3 changed files with 7 additions and 0 deletions

View File

@@ -14,6 +14,11 @@ describe('exports', function(){
assert.equal(express.json.length, 1)
})
it('should expose raw middleware', function () {
assert.equal(typeof express.raw, 'function')
assert.equal(express.raw.length, 1)
})
it('should expose static middleware', function () {
assert.equal(typeof express.static, 'function')
assert.equal(express.static.length, 2)