Multiple minor changes and improvements

This commit is contained in:
2026-10-08 21:14:54 +02:00
parent 163424f6f1
commit 5cf19bb8ac
30 changed files with 500 additions and 174 deletions

View File

@@ -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', () => {