Skip to content

Commit

Permalink
add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
newsiberian committed May 18, 2024
1 parent c1a7970 commit f02af31
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/__tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,21 @@ describe('Methods', () => {
});
});

it('should upload file within a folder', () => {
expect.assertions(2);

return client
.uploadFile({
container: `${container}/new-folder`,
file: path.resolve(__dirname, 'image.png'),
fileName: 'image.png',
})
.then((response) => {
expect(response).toBeDefined();
expect(response.statusCode).toBe(201);
});
});

it('should upload file from buffer', async () => {
expect.assertions(2);

Expand Down

0 comments on commit f02af31

Please sign in to comment.