feat: Add upload under account scope (#7914)

This commit is contained in:
Shivam Mishra
2023-09-19 09:51:54 +05:30
committed by GitHub
parent 2429daa45c
commit 53d530b815
8 changed files with 28 additions and 19 deletions

View File

@@ -25,10 +25,10 @@ describe('#Upload Helpers', () => {
axios.post.mockResolvedValueOnce(mockResponse);
const result = await uploadFile(mockFile);
const result = await uploadFile(mockFile, '1602');
expect(axios.post).toHaveBeenCalledWith(
'/api/v1/upload',
'/api/v1/accounts/1602/upload',
expect.any(FormData),
{ headers: { 'Content-Type': 'multipart/form-data' } }
);