fix issues in adapters
This commit is contained in:
@@ -110,8 +110,15 @@ describe('InMemorySeasonRepository', () => {
|
||||
await repository.create(season);
|
||||
|
||||
const updatedSeason = Season.create({
|
||||
...season,
|
||||
id: season.id,
|
||||
leagueId: season.leagueId.toString(),
|
||||
gameId: season.gameId.toString(),
|
||||
name: 'Updated Season',
|
||||
status: season.status.toString() as 'planned' | 'active' | 'completed',
|
||||
year: 2025,
|
||||
order: 1,
|
||||
startDate: new Date('2025-01-01'),
|
||||
endDate: new Date('2025-12-31'),
|
||||
});
|
||||
await repository.update(updatedSeason);
|
||||
const found = await repository.findById('1');
|
||||
|
||||
Reference in New Issue
Block a user