calendar: страница с 4 видами, личными событиями и источниками из системы
This commit is contained in:
@@ -261,5 +261,21 @@ try {
|
||||
}
|
||||
ok('некорректный размер рамки лица отклоняется', faceGeoBad);
|
||||
|
||||
ok('calendar_events входят в бэкап и sequences', BACKUP_TABLES.includes('calendar_events') && BACKUP_SEQUENCE_TABLES.includes('calendar_events'));
|
||||
const calRestore = normalizeRestoreData({
|
||||
...base,
|
||||
calendar_events: [
|
||||
{ id: 1, user_id: 1, title: 'Созвон', notes: 'n', location: 'Zoom', color: 'nope', starts_at: '2026-11-24T07:30:00.000Z', ends_at: '2026-11-24T08:30:00.000Z', all_day: false, repeat_rule: 'weekly', repeat_until: '2026-12-31', reminder_minutes: [10, 10, 999] },
|
||||
{ id: 2, user_id: 1, title: 'Без времени' },
|
||||
],
|
||||
});
|
||||
ok('calendar_events нормализуются: цвет/повтор/напоминания',
|
||||
calRestore.calendar_events.length === 1 &&
|
||||
calRestore.calendar_events[0].color === 'blue' &&
|
||||
calRestore.calendar_events[0].repeat_rule === 'weekly' &&
|
||||
calRestore.calendar_events[0].repeat_until === '2026-12-31' &&
|
||||
calRestore.calendar_events[0].reminder_minutes.join(',') === '10',
|
||||
calRestore.calendar_events);
|
||||
|
||||
console.log(failed ? `\n${failed} проверок провалено` : '\nBACKUP SELFTEST OK');
|
||||
process.exit(failed ? 1 : 0);
|
||||
Reference in New Issue
Block a user