Skip to content

Commit

Permalink
test: Checking if all files has been uploaded correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGP committed Mar 3, 2024
1 parent fc03127 commit 18854db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ describe('s3driver', () => {
const res = await s3.list('', true); // List all files with full data
const uploadedDirectory = res.find(item => item.name === 's3testdir-copy' && item.is_dir);
expect(uploadedDirectory).toBeDefined();

// Checking if all files has been uploaded correctly
const res2 = await s3.list('s3testdir-copy');
expect(res2).toEqual(['test1.txt', 'test2.txt']);
}, 10000);

test.only('should delete a file from the uploaded directory', async () => {
Expand Down

0 comments on commit 18854db

Please sign in to comment.