Skip to content

Commit

Permalink
chore: fix formatting and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
khatruong2009 committed Mar 26, 2024
1 parent f605384 commit 8a66c08
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,6 @@ void main() {
(WidgetTester tester) async {
const filesToUpload = 2;
const filesToList = 1;
const accessLevel = StorageAccessLevel.private;
final uploadedKeys = <String>[];
// Upload some files to test.
for (var i = filesToUpload; i > 0; i--) {
Expand All @@ -707,7 +706,8 @@ void main() {
// Call list() and ensure length of result matches pageSize.
final listResult = await Amplify.Storage.list(
path: StoragePath.withIdentityId(
(identityId) => 'private/$identityId/',),
(identityId) => 'private/$identityId/',
),
options: const StorageListOptions(
pageSize: filesToList,
),
Expand All @@ -730,7 +730,6 @@ void main() {
(WidgetTester tester) async {
const filesToUpload = 2;
const filesToList = 1;
const accessLevel = StorageAccessLevel.private;
final keyPrefix = 'testObjectList${uuid()}';
final uploadedKeys = <String>[];
// Upload some files to test.
Expand Down Expand Up @@ -763,7 +762,6 @@ void main() {
(identityId) => 'private/$identityId/',
),
options: StorageListOptions(
accessLevel: accessLevel,
pageSize: filesToList,
nextToken: lastNextToken,
),
Expand Down Expand Up @@ -793,7 +791,6 @@ void main() {
path: StoragePath.withIdentityId(
(identityId) => 'private/$identityId/remove-test/obj1',
),
options: const StorageListOptions(),
).result;

final result2 = await Amplify.Storage.uploadData(
Expand Down Expand Up @@ -840,7 +837,6 @@ void main() {
path: StoragePath.withIdentityId(
(identityId) => 'private/$identityId/remove-test-user-a/obj1',
),
options: const StorageListOptions(),
).result;

final result2 = await Amplify.Storage.uploadData(
Expand Down

0 comments on commit 8a66c08

Please sign in to comment.