 
 body = (size) ->
   try
-    return new Blob((0 for i in [0..size]))
+    return new Blob((0 for i in [0...size]))
   catch e
     return new AWS.util.Buffer(size)
 

      expect(data).not.to.exist
      expect(err.message).to.equal('ERROR')

    it 'uploads multipart if size is greater than min multipart size', ->
      reqs = helpers.mockResponses [
        { data: UploadId: 'uploadId' }
        { data: ETag: 'ETAG1' }

    it 'uses a default service object if none provided', ->
      expect(-> new AWS.S3.ManagedUpload()).to.throw('params.Body is required')

    it 'uploads a single part if size is less than min multipart size', (done) ->
      reqs = helpers.mockResponses [
        data: ETag: 'ETAG'
      ]
