Skip to content

Commit

Permalink
Add "retains non-image filenames" test case
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecRust committed Oct 26, 2023
1 parent d59d27c commit 0d35a05
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,29 @@ describe('Tests', () => {
)
})

it('retains non-image filenames', async () => {
await runTest(
[
{ name: 'IMG_0001.MOV.mp4' },
{
name: 'IMG_0001.MOV.json',
content: {
title: 'IMG_0001.MOV',
photoTakenTime: {
timestamp: '86400',
},
},
},
],
[
{
name: 'IMG_0001.MOV.mp4',
timestamp: '86400',
},
],
)
})

it('handles filename apostrophe replacement', async () => {
await runTest(
[
Expand Down

0 comments on commit 0d35a05

Please sign in to comment.