Skip to content

Commit

Permalink
test: add errors to promise rejections
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandopasik committed Jan 26, 2024
1 parent d52a105 commit 001700a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/__tests__/route.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ describe('route element', () => {
const route = new Route();
route.active = true;
route.component = 'docs-page';
route.resolve = async (): Promise<void> => Promise.reject();
route.resolve = async (): Promise<void> => Promise.reject(new Error());
route.loading = 'my-loading';
route.path = '/';
const state = { activeRoute: route.path };
Expand All @@ -367,7 +367,7 @@ describe('route element', () => {
const route = new Route();
route.active = true;
route.component = 'docs-page';
route.resolve = async (): Promise<void> => Promise.reject();
route.resolve = async (): Promise<void> => Promise.reject(new Error());
route.loading = 'my-loading';
route.path = '/';

Expand Down

0 comments on commit 001700a

Please sign in to comment.