Skip to content

Commit

Permalink
test for unicode compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jdub233 committed Feb 7, 2024
1 parent a244cb2 commit 175ee2c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/getOrCreateObject/getOrCreateObject.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,15 @@ describe('getOrCreateObject', () => {
);
expect(result.Body).toBeDefined();
});

it('should correctly handle unicode characters', async () => {
const result = await getOrCreateObject(
{
url: 'https://example-1111.s3-object-lambda.us-east-1.amazonaws.com/site/files/01/file-with-ñ.jpg',
headers: { },
},
'www.bu.edu',
);
expect(result.Body).toBeDefined();
});
});

0 comments on commit 175ee2c

Please sign in to comment.