Fix sports-season test: loosen makeMockDb type to Record<string, unknown>[]
typeof mockSeasons became too strict after adding participants to the mock data, breaking inline arrays in other tests that don't include participants. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
1271700f41
commit
330660d1b8
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ const mockSeasons = [
|
||||||
{ id: "season-3", name: "2024 Old Golf", draftOn: pastStart, draftOff: pastEnd, year: 2024, status: "completed", sport: { name: "Golf" }, participants: [] },
|
{ id: "season-3", name: "2024 Old Golf", draftOn: pastStart, draftOff: pastEnd, year: 2024, status: "completed", sport: { name: "Golf" }, participants: [] },
|
||||||
];
|
];
|
||||||
|
|
||||||
function makeMockDb(seasons: typeof mockSeasons) {
|
function makeMockDb(seasons: Record<string, unknown>[]) {
|
||||||
return {
|
return {
|
||||||
query: {
|
query: {
|
||||||
sportsSeasons: {
|
sportsSeasons: {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue