Добавить общие события и множественный выбор в календарь

This commit is contained in:
dev
2026-11-24 13:50:38 +03:00
parent d7f4a4b457
commit 9960e2e8bd
8 changed files with 426 additions and 86 deletions
+3 -2
View File
@@ -265,7 +265,7 @@ ok('calendar_events входят в бэкап и sequences', BACKUP_TABLES.incl
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: 1, user_id: 1, is_common: true, 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: 'Без времени' },
],
});
@@ -274,7 +274,8 @@ ok('calendar_events нормализуются: цвет/повтор/напом
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[0].reminder_minutes.join(',') === '10' &&
calRestore.calendar_events[0].is_common === true,
calRestore.calendar_events);
console.log(failed ? `\n${failed} проверок провалено` : '\nBACKUP SELFTEST OK');