Skip to content

Commit

Permalink
Test req.file.buffer is a buffer when empty file
Browse files Browse the repository at this point in the history
  • Loading branch information
axelpale committed Oct 11, 2018
1 parent 676c0d6 commit 7c952e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/memory-storage.js
Expand Up @@ -65,6 +65,7 @@ describe('Memory Storage', function () {
assert.equal(req.file.originalname, 'empty.dat')
assert.equal(req.file.size, 0)
assert.equal(req.file.buffer.length, 0)
assert.equal(Buffer.isBuffer(req.file.buffer), true)

done()
})
Expand Down

0 comments on commit 7c952e2

Please sign in to comment.