Skip to content

Commit

Permalink
updated tests to account for changes to uploadData api
Browse files Browse the repository at this point in the history
  • Loading branch information
ekjotmultani committed Nov 4, 2024
1 parent e4b9d7f commit 309fca4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 0 additions & 3 deletions packages/amplify_core/lib/src/types/storage/list_options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ class StorageListOptions
/// Optionally specify which bucket to retrieve
final StorageBucket? bucket;

/// an optional bucket to specify which bucket to return the list for
final StorageBucket? bucket;

@override
List<Object?> get props => [pageSize, nextToken, pluginOptions, bucket];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ void main() {
await Amplify.Storage.uploadData(
path: StoragePath.fromString(uploadedPaths[pathIndex]),
data: StorageDataPayload.bytes('test content'.codeUnits),
bucket: mainBucket,
options: StorageUploadDataOptions(
bucket: mainBucket,
),
).result;
}
for (var pathIndex = uploadedPaths.length ~/ 2;
Expand All @@ -48,7 +50,9 @@ void main() {
await Amplify.Storage.uploadData(
path: StoragePath.fromString(uploadedPaths[pathIndex]),
data: StorageDataPayload.bytes('test content'.codeUnits),
bucket: secondaryBucket,
options: StorageUploadDataOptions(
bucket: secondaryBucket,
),
).result;
}
for (final path in uploadedPaths) {
Expand Down

0 comments on commit 309fca4

Please sign in to comment.