rename: Minuteur Dragodinde → Obsidienne
- Renommage complet dans package.json, main.ts, UI, tray, notifications - GUID NSIS fixe pour mise à jour propre (pas de doublon d'installation) - Migration automatique des données depuis %APPDATA%\Minuteur Dragodinde\ - Rétrocompatibilité import : backups 'minuteur-dragodinde' toujours acceptés - Mise à jour README changelog, CLAUDE.md, docs, maquettes, page ntfy Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -57,19 +57,19 @@ describe('Sécurité — Hardening', () => {
|
||||
describe('Validation backup — format métadonnées', () => {
|
||||
it('backup valide contient app, version, exportedAt, data', () => {
|
||||
const backup = {
|
||||
app: 'minuteur-dragodinde',
|
||||
app: 'obsidienne',
|
||||
version: '1.1.6',
|
||||
exportedAt: new Date().toISOString(),
|
||||
data: { enclos: [] },
|
||||
};
|
||||
expect(backup.app).toBe('minuteur-dragodinde');
|
||||
expect(backup.app).toBe('obsidienne');
|
||||
expect(typeof backup.version).toBe('string');
|
||||
expect(typeof backup.exportedAt).toBe('string');
|
||||
expect(backup.data).toBeDefined();
|
||||
});
|
||||
|
||||
it('data: null est détecté comme invalide', () => {
|
||||
const backup = { app: 'minuteur-dragodinde', data: null };
|
||||
const backup = { app: 'obsidienne', data: null };
|
||||
// typeof null === 'object' mais data === null doit être rejeté
|
||||
expect(backup.data === null).toBe(true);
|
||||
expect(!!(backup.data && typeof backup.data === 'object' && backup.data !== null)).toBe(false);
|
||||
|
||||
Reference in New Issue
Block a user