fix correctFilename extが.から始まる場合も考慮する
This commit is contained in:
parent
824398509d
commit
87d0f56dc7
2 changed files with 4 additions and 1 deletions
|
@ -21,6 +21,9 @@ describe('misc:correct-filename', () => {
|
|||
test('with same ext', () => {
|
||||
expect(correctFilename('filename.jpg', 'jpg')).toBe('filename.jpg');
|
||||
});
|
||||
test('.ext', () => {
|
||||
expect(correctFilename('filename.jpg', '.jpg')).toBe('filename.jpg');
|
||||
});
|
||||
test('with different ext', () => {
|
||||
expect(correctFilename('filename.webp', 'jpg')).toBe('filename.webp.jpg');
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue