Skip to content

Commit

Permalink
Update _dev/src/ts/types/apiTypes.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Guyomar Alexis <[email protected]>
  • Loading branch information
Quetzacoalt91 and ga-devfront committed Jan 30, 2025
1 parent e945508 commit cfdec08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _dev/src/ts/types/apiTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface ApiResponseHydration {
}

interface ApiResponseNextRoute {
kind: 'next';
kind: 'next_route';
next_route: string;
}

Expand Down
2 changes: 1 addition & 1 deletion _dev/tests/api/RequestHandler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe('RequestHandler', () => {
});

it('should handle response with next_route and make two API calls', async () => {
const response: ApiResponse = { kind: 'next', next_route: 'next_route' };
const response: ApiResponse = { kind: 'next_route', next_route: 'next_route' };
(baseApi.post as jest.Mock).mockResolvedValueOnce({ data: response });

const formData = new FormData();
Expand Down

0 comments on commit cfdec08

Please sign in to comment.