perf: the request client upload function supports more parameters (#4439)
This commit is contained in:
@@ -79,7 +79,9 @@ describe('requestClient', () => {
|
||||
: [400, { error: 'Bad Request' }];
|
||||
});
|
||||
|
||||
const response = await requestClient.upload('/test/upload', fileData);
|
||||
const response = await requestClient.upload('/test/upload', {
|
||||
file: fileData,
|
||||
});
|
||||
expect(response.data).toEqual({ data: 'file uploaded' });
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user