Добавить общие события и множественный выбор в календарь
This commit is contained in:
+3
-2
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user