Fix issue where custom separator could be the same as a character in the prefix
This commit is contained in:
@@ -202,6 +202,8 @@ describe('main', () => {
|
||||
it('refuses an unknown flag or an unusable separator', async () => {
|
||||
expect(await main(['--aply'])).toBe(2)
|
||||
expect(await main(['--separator', '-'])).toBe(2)
|
||||
expect(await main(['--separator', '_'])).toBe(2)
|
||||
expect(errors[errors.length - 1]).toMatch(/with the prefix "ipp_upload_"/)
|
||||
})
|
||||
|
||||
it('reads the separator from config, and exits 1 on an Immich error', async () => {
|
||||
|
||||
Reference in New Issue
Block a user