src/app/child-dev-project/children/children.service.spec.ts
File children.service.spec.ts
has 305 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 { Child } from "./model/child";
import { School } from "../schools/model/school";
Function generateChildEntities
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function generateChildEntities(): Child[] {
const data = [];
const a1 = new 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";