graycoreio/daffodil

View on GitHub
libs/navigation/testing/src/factories/navigation-tree.factory.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function fakeTree has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private fakeTree(depth: number = 0): DaffNavigationTree {
    const children = depth !== 0
      ? [...Array(faker.datatype.number({ min:1, max:3 }))].map(() => this.fakeTree(depth - 1))
      : [];

Severity: Minor
Found in libs/navigation/testing/src/factories/navigation-tree.factory.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status