Multiple minor changes and improvements
This commit is contained in:
@@ -49,7 +49,7 @@ describe('buildBackup', () => {
|
||||
});
|
||||
|
||||
it('names the file by date', () => {
|
||||
expect(backupFilename(at('2026-09-06', '12:00'))).toBe('timelog-2026-09-06.json');
|
||||
expect(backupFilename(at('2026-09-06', '12:00'))).toBe('pardis-2026-09-06.json');
|
||||
});
|
||||
});
|
||||
|
||||
@@ -78,7 +78,7 @@ describe('parseBackup rejects what it should', () => {
|
||||
});
|
||||
|
||||
it('refuses a JSON file that is not ours', () => {
|
||||
expect(() => parseBackup('{"hello":"world"}')).toThrow(/pas un export TimeLog/);
|
||||
expect(() => parseBackup('{"hello":"world"}')).toThrow(/pas un export Pardis/);
|
||||
});
|
||||
|
||||
it('refuses a bare array', () => {
|
||||
|
||||
Reference in New Issue
Block a user