view models
This commit is contained in:
@@ -24,7 +24,7 @@ describe('LeagueStandingsViewModel', () => {
|
||||
];
|
||||
|
||||
const viewModel = new LeagueStandingsViewModel(
|
||||
{ standings },
|
||||
{ standings, drivers: [], memberships: [] },
|
||||
'driver-1'
|
||||
);
|
||||
|
||||
@@ -46,7 +46,7 @@ describe('LeagueStandingsViewModel', () => {
|
||||
];
|
||||
|
||||
const viewModel = new LeagueStandingsViewModel(
|
||||
{ standings },
|
||||
{ standings, drivers: [], memberships: [] },
|
||||
'driver-1'
|
||||
);
|
||||
|
||||
@@ -82,7 +82,7 @@ describe('LeagueStandingsViewModel', () => {
|
||||
];
|
||||
|
||||
const viewModel = new LeagueStandingsViewModel(
|
||||
{ standings },
|
||||
{ standings, drivers: [], memberships: [] },
|
||||
'driver-2'
|
||||
);
|
||||
|
||||
@@ -111,7 +111,7 @@ describe('LeagueStandingsViewModel', () => {
|
||||
];
|
||||
|
||||
const viewModel = new LeagueStandingsViewModel(
|
||||
{ standings },
|
||||
{ standings, drivers: [], memberships: [] },
|
||||
'driver-2'
|
||||
);
|
||||
|
||||
@@ -121,7 +121,7 @@ describe('LeagueStandingsViewModel', () => {
|
||||
|
||||
it('should handle empty standings', () => {
|
||||
const viewModel = new LeagueStandingsViewModel(
|
||||
{ standings: [] },
|
||||
{ standings: [], drivers: [], memberships: [] },
|
||||
'driver-1'
|
||||
);
|
||||
|
||||
@@ -168,7 +168,7 @@ describe('LeagueStandingsViewModel', () => {
|
||||
];
|
||||
|
||||
const viewModel = new LeagueStandingsViewModel(
|
||||
{ standings },
|
||||
{ standings, drivers: [], memberships: [] },
|
||||
'driver-1',
|
||||
previousStandings
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user