libs/navigation/testing/src/factories/navigation-tree.factory.ts
Function fakeTree
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private fakeTree(depth: number = 0): DaffNavigationTree {
const children = depth !== 0
? [...Array(faker.datatype.number({ min:1, max:3 }))].map(() => this.fakeTree(depth - 1))
: [];