refactor
This commit is contained in:
@@ -144,7 +144,8 @@ describe('GetLeagueFullConfigUseCase', () => {
|
||||
|
||||
expect(result.isErr()).toBe(true);
|
||||
const error = result.unwrapErr();
|
||||
expect(error.message).toBe('League with id league-1 not found');
|
||||
expect(error.code).toBe('LEAGUE_NOT_FOUND');
|
||||
expect(error.details.message).toBe('League with id league-1 not found');
|
||||
});
|
||||
|
||||
it('should handle no active season', async () => {
|
||||
|
||||
Reference in New Issue
Block a user