Skip to content

Commit

Permalink
fix: silence unnecessary warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Oct 18, 2021
1 parent 3d5ba48 commit cc3dedf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ export function createRouterMock(options: RouterMockOptions = {}): RouterMock {
...options,
})

// add a default onError to avoid logging a warning
router.onError(() => {})

let { runPerRouteGuards, runInComponentGuards, noUndeclaredRoutes } = options
const initialLocation = options.initialLocation || START_LOCATION

Expand Down

0 comments on commit cc3dedf

Please sign in to comment.