@@ -727,6 +727,7 @@ describe("S3rver Tests", function() {
727
727
const data = yield s3Client . listObjects ( { Bucket : buckets [ 1 ] } ) . promise ( ) ;
728
728
expect ( data . Name ) . to . equal ( buckets [ 1 ] ) ;
729
729
expect ( data . Contents ) . to . have . lengthOf ( testObjects . length ) ;
730
+ expect ( data . IsTruncated ) . to . be . false ;
730
731
} ) ;
731
732
732
733
it ( "should list objects in a bucket filtered by a prefix" , function * ( ) {
@@ -913,18 +914,18 @@ describe("S3rver Tests", function() {
913
914
914
915
it ( "should return one thousand small objects" , function * ( ) {
915
916
yield generateTestObjects ( s3Client , buckets [ 2 ] , 2000 ) ;
916
- const objects = yield s3Client
917
- . listObjects ( { Bucket : buckets [ 2 ] } )
918
- . promise ( ) ;
919
- expect ( objects . Contents ) . to . have . lengthOf ( 1000 ) ;
917
+ const data = yield s3Client . listObjects ( { Bucket : buckets [ 2 ] } ) . promise ( ) ;
918
+ expect ( data . IsTruncated ) . to . be . true ;
919
+ expect ( data . Contents ) . to . have . lengthOf ( 1000 ) ;
920
920
} ) ;
921
921
922
922
it ( "should return 500 small objects" , function * ( ) {
923
923
yield generateTestObjects ( s3Client , buckets [ 2 ] , 1000 ) ;
924
- const objects = yield s3Client
924
+ const data = yield s3Client
925
925
. listObjects ( { Bucket : buckets [ 2 ] , MaxKeys : 500 } )
926
926
. promise ( ) ;
927
- expect ( objects . Contents ) . to . have . lengthOf ( 500 ) ;
927
+ expect ( data . IsTruncated ) . to . be . true ;
928
+ expect ( data . Contents ) . to . have . lengthOf ( 500 ) ;
928
929
} ) ;
929
930
930
931
it ( "should delete 500 small objects" , function * ( ) {
0 commit comments