src/app/child-dev-project/children/children.service.spec.ts
File children.service.spec.ts
has 304 lines of code (exceeds 250 allowed). Consider refactoring. Open
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";
Function generateChildEntities
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function generateChildEntities(): Entity[] {
const data = [];
const a1 = createEntityOfType("Child", "1");
a1.name = "Arjun A.";
Function generateChildSchoolRelationEntities
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function generateChildSchoolRelationEntities(): ChildSchoolRelation[] {
const data: ChildSchoolRelation[] = [];
const rel1: ChildSchoolRelation = new ChildSchoolRelation("1");
rel1.childId = "Child:1";
rel1["schoolId"] = "School:1";