@@ -40,7 +40,8 @@ void main() {
40
40
path: StoragePath .fromString (uploadedPaths[i]),
41
41
data: StorageDataPayload .bytes ('test content' .codeUnits),
42
42
bucket: StorageBucket .fromOutputs (
43
- 'Storage Integ Test secondary bucket' ,),
43
+ 'Storage Integ Test secondary bucket' ,
44
+ ),
44
45
).result;
45
46
}
46
47
for (final path in uploadedPaths) {
@@ -56,8 +57,10 @@ void main() {
56
57
final listResultSecondaryBucket = await Amplify .Storage .list (
57
58
path: StoragePath .fromString (uniquePrefix),
58
59
options: StorageListOptions (
59
- bucket: StorageBucket .fromOutputs (
60
- 'Storage Integ Test secondary bucket' ,),),
60
+ bucket: StorageBucket .fromOutputs (
61
+ 'Storage Integ Test secondary bucket' ,
62
+ ),
63
+ ),
61
64
).result;
62
65
for (var i = 0 ; i < 4 ; i++ ) {
63
66
expect (
@@ -133,7 +136,8 @@ void main() {
133
136
delimiter: '#' ,
134
137
),
135
138
bucket: StorageBucket .fromOutputs (
136
- 'Storage Integ Test secondary bucket' ,),
139
+ 'Storage Integ Test secondary bucket' ,
140
+ ),
137
141
),
138
142
).result as S3ListResult ;
139
143
@@ -148,8 +152,10 @@ void main() {
148
152
expect (listResult.metadata.delimiter, '#' );
149
153
150
154
expect (listResultSecondaryBucket.items.length, 3 );
151
- expect (listResultSecondaryBucket.items.first.path,
152
- contains ('file5.txt' ),);
155
+ expect (
156
+ listResultSecondaryBucket.items.first.path,
157
+ contains ('file5.txt' ),
158
+ );
153
159
154
160
expect (listResultSecondaryBucket.metadata.subPaths.length, 1 );
155
161
expect (
@@ -176,13 +182,16 @@ void main() {
176
182
options: StorageListOptions (
177
183
pageSize: 2 ,
178
184
bucket: StorageBucket .fromOutputs (
179
- 'Storage Integ Test secondary bucket' ,),
185
+ 'Storage Integ Test secondary bucket' ,
186
+ ),
180
187
),
181
188
).result;
182
189
183
190
expect (listResultSecondaryBucket.items.length, 2 );
184
- expect (listResultSecondaryBucket.items.first.path,
185
- contains ('file5.txt' ),);
191
+ expect (
192
+ listResultSecondaryBucket.items.first.path,
193
+ contains ('file5.txt' ),
194
+ );
186
195
});
187
196
188
197
testWidgets ('should list files with pagination' , (_) async {
@@ -225,12 +234,15 @@ void main() {
225
234
options: StorageListOptions (
226
235
pluginOptions: const S3ListPluginOptions .listAll (),
227
236
bucket: StorageBucket .fromOutputs (
228
- 'Storage Integ Test secondary bucket' ,),
237
+ 'Storage Integ Test secondary bucket' ,
238
+ ),
229
239
),
230
240
).result;
231
241
232
- expect (listResultSecondaryBucket.items.length,
233
- uploadedPaths.length ~ / 2 ,);
242
+ expect (
243
+ listResultSecondaryBucket.items.length,
244
+ uploadedPaths.length ~ / 2 ,
245
+ );
234
246
expect (listResultSecondaryBucket.nextToken, isNull);
235
247
});
236
248
});
0 commit comments