Skip to content

Commit

Permalink
feat: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ga-devfront committed Nov 4, 2024
1 parent e5bfae8 commit db814be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _dev/tests/routing/ScriptHandler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ describe('ScriptHandler', () => {
});

it('should catch en log warning if no matching class is found for the route', () => {
const consoleWarningSpy = jest.spyOn(console, 'warn').mockImplementation();
const consoleDebugSpy = jest.spyOn(console, 'debug').mockImplementation();
const route = 'unknown-route';
(routeHandler.getCurrentRoute as jest.Mock).mockReturnValue(route);

scriptHandler = new ScriptHandler();

expect(consoleWarningSpy).toHaveBeenCalledWith(
expect(consoleDebugSpy).toHaveBeenCalledWith(
`No matching page Class found for route: ${route}`
);
});
Expand Down

0 comments on commit db814be

Please sign in to comment.