integration tests
Some checks failed
CI / lint-typecheck (pull_request) Failing after 4m50s
CI / tests (pull_request) Has been skipped
CI / contract-tests (pull_request) Has been skipped
CI / e2e-tests (pull_request) Has been skipped
CI / comment-pr (pull_request) Has been skipped
CI / commit-types (pull_request) Has been skipped

This commit is contained in:
2026-01-23 11:44:59 +01:00
parent a0f41f242f
commit 6df38a462a
125 changed files with 4712 additions and 19184 deletions

View File

@@ -218,10 +218,15 @@ export class InMemoryResultRepository implements ResultRepository {
}
}
async clear(): Promise<void> {
this.logger.debug('[InMemoryResultRepository] Clearing all results.');
this.results.clear();
}
/**
* Utility method to generate a new UUID
*/
static generateId(): string {
return uuidv4();
}
}
}

View File

@@ -99,4 +99,12 @@ export class InMemorySponsorshipPricingRepository implements SponsorshipPricingR
throw error;
}
}
async create(pricing: any): Promise<void> {
await this.save(pricing.entityType, pricing.entityId, pricing);
}
clear(): void {
this.pricings.clear();
}
}

View File

@@ -166,6 +166,11 @@ export class InMemoryStandingRepository implements StandingRepository {
}
}
async clear(): Promise<void> {
this.logger.debug('Clearing all standings.');
this.standings.clear();
}
async recalculate(leagueId: string): Promise<Standing[]> {
this.logger.debug(`Recalculating standings for league id: ${leagueId}`);
try {
@@ -268,4 +273,4 @@ export class InMemoryStandingRepository implements StandingRepository {
throw error;
}
}
}
}