fix issues in core
This commit is contained in:
@@ -93,7 +93,7 @@ describe('GetAllRacesPageDataUseCase', () => {
|
||||
expect(result.unwrap()).toBeUndefined();
|
||||
expect(output.present).toHaveBeenCalledTimes(1);
|
||||
|
||||
const presented = output.present.mock.calls[0][0] as GetAllRacesPageDataResult;
|
||||
const presented = output.present.mock.calls[0]?.[0] as GetAllRacesPageDataResult;
|
||||
|
||||
expect(presented.races).toEqual([
|
||||
{
|
||||
@@ -150,7 +150,7 @@ describe('GetAllRacesPageDataUseCase', () => {
|
||||
expect(result.unwrap()).toBeUndefined();
|
||||
expect(output.present).toHaveBeenCalledTimes(1);
|
||||
|
||||
const presented = output.present.mock.calls[0][0] as GetAllRacesPageDataResult;
|
||||
const presented = output.present.mock.calls[0]?.[0] as GetAllRacesPageDataResult;
|
||||
|
||||
expect(presented.races).toEqual([]);
|
||||
expect(presented.filters).toEqual({
|
||||
|
||||
Reference in New Issue
Block a user