-
-
Notifications
You must be signed in to change notification settings - Fork 936
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(dependencies-hierarchy): simplify max depth recursion (#5858)
* test(dependencies-hierarchy): start currentDepth at 1 in tests Calls to `getTree` from the `buildDependenciesHierarchy` function always start the `currentDepth` at `1` rather than `0`. Updating `currentDepth` calls in test to also start at `1` for consistency with production code. This required incrementing the `maxDepth` argument in a few cases as well. * refactor(dependencies-hierarchy): simplify max depth recursion
- Loading branch information
Showing
3 changed files
with
19 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters