Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(storage): decouple utils from Amplify singleton #13562

Merged
merged 12 commits into from
Jul 10, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,12 @@ describe('uploadData with path', () => {
uploadData(testInput);

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

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

Expand Down
Loading
Loading