Skip to content

Commit

Permalink
responseType
Browse files Browse the repository at this point in the history
  • Loading branch information
ckoegel committed Nov 4, 2024
1 parent 00e9cde commit 0da800a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/smoke/media-api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ describe('MediaApi', () => {
});

test('should get media file', async () => {
const { status, data } = await mediaApi.getMedia(BW_ACCOUNT_ID, mediaFileName);
const { status, data } = await mediaApi.getMedia(BW_ACCOUNT_ID, mediaFileName, { responseType: 'arraybuffer' });
// fs.writeFile('./tests/fixtures/test.jpeg', Buffer.from(data), (err) => {
// if (err) throw err;
// });
Expand Down

0 comments on commit 0da800a

Please sign in to comment.