chore: demo parallel rundowns

This commit is contained in:
Carlos Valente
2026-03-17 20:54:06 +01:00
committed by Carlos Valente
parent 224d3600b2
commit 2331205c93
3 changed files with 1146 additions and 331 deletions
@@ -42,21 +42,25 @@ describe('test parseDatabaseModel() with demo project (valid)', () => {
// remove time-related fields from the comparison
// these are not calculated in the parser
Object.values(filteredDemoProject.rundowns.default.entries).forEach((entry: any) => {
if (entry.type === SupportedEntry.Group) {
delete entry.timeStart;
delete entry.timeEnd;
delete entry.duration;
delete entry.isFirstLinked;
}
Object.values(filteredDemoProject.rundowns).forEach((rundown: any) => {
Object.values(rundown.entries).forEach((entry: any) => {
if (entry.type === SupportedEntry.Group) {
delete entry.timeStart;
delete entry.timeEnd;
delete entry.duration;
delete entry.isFirstLinked;
}
});
});
Object.values(data.rundowns.default.entries).forEach((entry: any) => {
if (entry.type === SupportedEntry.Group) {
delete entry.timeStart;
delete entry.timeEnd;
delete entry.duration;
delete entry.isFirstLinked;
}
Object.values(data.rundowns).forEach((rundown: any) => {
Object.values(rundown.entries).forEach((entry: any) => {
if (entry.type === SupportedEntry.Group) {
delete entry.timeStart;
delete entry.timeEnd;
delete entry.duration;
delete entry.isFirstLinked;
}
});
});
expect(data.automation).toMatchObject(filteredDemoProject.automation);