Skip to content

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

Merged
merged 11 commits into from
Jul 7, 2021

Conversation

arjunlalb
Copy link
Contributor

Description

Minor refactor

Testing

UT added

Checklist:

  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • Any dependent changes have been merged and published in downstream modules

@arjunlalb arjunlalb requested a review from a team as a code owner July 5, 2021 07:40
@arjunlalb arjunlalb changed the base branch from rename-route-interface to main July 5, 2021 07:41
@codecov
Copy link

codecov bot commented Jul 5, 2021

Codecov Report

Merging #969 (2eee9a3) into main (71f8c34) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           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           
Impacted Files Coverage Δ
...ojects/common/src/navigation/navigation.service.ts 86.95% <100.00%> (+1.24%) ⬆️
src/app/shared/navigation/navigation.component.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 71f8c34...2eee9a3. Read the comment docs.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

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 {
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

anandtiwary
anandtiwary previously approved these changes Jul 6, 2021
@arjunlalb arjunlalb dismissed stale reviews from anandtiwary and itssharmasandeep via 1048eca July 7, 2021 05:23
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@arjunlalb arjunlalb merged commit 94a0439 into main Jul 7, 2021
@arjunlalb arjunlalb deleted the refactor-decorate-nav-item branch July 7, 2021 13:23
@github-actions
Copy link

github-actions bot commented Jul 7, 2021

Unit Test Results

    4 files  ±0  259 suites  ±0   14m 6s ⏱️ -38s
939 tests +1  939 ✔️ +1  0 💤 ±0  0 ❌ ±0 
945 runs  +1  945 ✔️ +1  0 💤 ±0  0 ❌ ±0 

Results for commit 94a0439. ± Comparison against base commit 71f8c34.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants