fix core tests
This commit is contained in:
@@ -52,7 +52,13 @@ describe('GetLeagueJoinRequestsUseCase', () => {
|
||||
const input: GetLeagueJoinRequestsInput = { leagueId };
|
||||
|
||||
const joinRequests = [
|
||||
{ id: 'req-1', leagueId, driverId: 'driver-1', requestedAt: new Date(), message: 'msg' },
|
||||
{
|
||||
id: 'req-1',
|
||||
leagueId: { toString: () => leagueId },
|
||||
driverId: { toString: () => 'driver-1' },
|
||||
requestedAt: { toDate: () => new Date() },
|
||||
message: 'msg',
|
||||
},
|
||||
];
|
||||
|
||||
const driver = Driver.create({
|
||||
|
||||
Reference in New Issue
Block a user