Aam-Digital/ndb-core

View on GitHub
src/app/child-dev-project/children/children.service.spec.ts

Summary

Maintainability
B
5 hrs
Test Coverage

File children.service.spec.ts has 304 lines of code (exceeds 250 allowed). Consider refactoring.
Open

import { ChildrenService } from "./children.service";
import { EntityMapperService } from "../../core/entity/entity-mapper/entity-mapper.service";
import { ChildSchoolRelation } from "./model/childSchoolRelation";
import { TestBed, waitForAsync } from "@angular/core/testing";
import moment from "moment";
Severity: Minor
Found in src/app/child-dev-project/children/children.service.spec.ts - About 3 hrs to fix

    Function generateChildEntities has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function generateChildEntities(): Entity[] {
      const data = [];
    
      const a1 = createEntityOfType("Child", "1");
      a1.name = "Arjun A.";
    Severity: Minor
    Found in src/app/child-dev-project/children/children.service.spec.ts - About 1 hr to fix

      Function generateChildSchoolRelationEntities has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function generateChildSchoolRelationEntities(): ChildSchoolRelation[] {
        const data: ChildSchoolRelation[] = [];
        const rel1: ChildSchoolRelation = new ChildSchoolRelation("1");
        rel1.childId = "Child:1";
        rel1["schoolId"] = "School:1";
      Severity: Minor
      Found in src/app/child-dev-project/children/children.service.spec.ts - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status