-
Notifications
You must be signed in to change notification settings - Fork 11
feat: move a common method into navigation service #969
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## main #969 +/- ##
=======================================
Coverage 85.04% 85.04%
=======================================
Files 812 812
Lines 16744 16745 +1
Branches 2166 2166
=======================================
+ Hits 14240 14241 +1
Misses 2473 2473
Partials 31 31
Continue to review full report at Codecov.
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@@ -229,6 +231,26 @@ export class NavigationService { | |||
return this.findRouteConfig(path, childRoutes ? childRoutes : []); | |||
} | |||
|
|||
public decorateNavItem(navItem: NavItemConfig, activatedRoute: ActivatedRoute): NavItemConfig { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add some tests for these two methods since they are shared? Can do it in a follow up PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
1048eca
Description
Minor refactor
Testing
UT added
Checklist: