|
@@ -460,6 +460,12 @@ describe('S3PersistorTests', function() {
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
|
|
+ it('should upload files in a single part', function() {
|
|
|
|
|
+ expect(S3Client.upload).to.have.been.calledWith(sinon.match.any, {
|
|
|
|
|
+ partSize: 100 * 1024 * 1024
|
|
|
|
|
+ })
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
it('should meter the stream', function() {
|
|
it('should meter the stream', function() {
|
|
|
expect(Stream.pipeline).to.have.been.calledWith(
|
|
expect(Stream.pipeline).to.have.been.calledWith(
|
|
|
ReadStream,
|
|
ReadStream,
|