Skip to content

Commit

Permalink
Revert "refactor(storage): decouple utils from Amplify singleton (#13562
Browse files Browse the repository at this point in the history
)" (#13597)

This reverts commit 1079e7f.
  • Loading branch information
israx authored Jul 15, 2024
1 parent 335315a commit dcba3d7
Show file tree
Hide file tree
Showing 19 changed files with 402 additions and 614 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,9 @@ describe('uploadData with path', () => {
uploadData(testInput);

expect(mockPutObjectJob).toHaveBeenCalledWith(
expect.objectContaining({
input: testInput,
totalLength: expect.any(Number),
abortSignal: expect.any(AbortSignal),
config: expect.any(Object),
}),
testInput,
expect.any(AbortSignal),
expect.any(Number),
);
expect(mockGetMultipartUploadHandlers).not.toHaveBeenCalled();
},
Expand Down Expand Up @@ -215,11 +212,8 @@ describe('uploadData with path', () => {

expect(mockPutObjectJob).not.toHaveBeenCalled();
expect(mockGetMultipartUploadHandlers).toHaveBeenCalledWith(
expect.objectContaining({
config: expect.any(Object),
input: testInput,
size: expect.any(Number),
}),
testInput,
expect.any(Number),
);
});

Expand Down
Loading

0 comments on commit dcba3d7

Please sign in to comment.