Skip to content

Commit

Permalink
adds failing test for uploading empty buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
sintaxi committed Feb 25, 2013
1 parent 1abc394 commit e3db412
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/all.js
Expand Up @@ -36,6 +36,13 @@ describe("all", function(){
})
})

it("should upload empty file", function(done) {
client.put("myemptyfile.txt", new Buffer(0), function(status, reply){
status.should.eql(200)
done()
})
})

it("should move a file", function(done) {
client.mv("myfirstfile.txt", "myrenamedfile.txt", function(status, reply){
status.should.eql(200)
Expand Down

0 comments on commit e3db412

Please sign in to comment.