Skip to content

Commit

Permalink
test: fix faulty test suite for route tree
Browse files Browse the repository at this point in the history
  • Loading branch information
Kai Böse committed Nov 8, 2023
1 parent e1b1af9 commit 5f717ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/core/router/router-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class RouterModule {

private deepCloneRoutes(
routes: (RouteTree | Type<any>)[],
): Routes | Array<Type<any>> {
): (RouteTree | Type<any>)[] {
return routes.map((routeOrType: Type<any> | RouteTree) => {
if (typeof routeOrType === 'function') {
return routeOrType;
Expand All @@ -52,7 +52,7 @@ export class RouterModule {
};
}
return { ...routeOrType };
}) as Routes | Array<Type<any>>;
});
}

private initialize() {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/test/router/utils/flat-routes.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ describe('flattenRoutePaths', () => {
children: [
{
path: 'child',
ChildModule3,
module: ChildModule3,
},
ChildModule4,
],
Expand Down

0 comments on commit 5f717ef

Please sign in to comment.