Skip to content

test: add and complete Jasmine/Karma unit tests across TM-UI - #167

Merged
snehar-nd merged 1 commit into
mainfrom
sn/Testcases
Oct 29, 2026
Merged

snehar-nd merged 1 commit into
mainfrom
sn/Testcases

test: add and complete Jasmine/Karma unit tests across TM-UI

ae7c612
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Oct 27, 2026 in 44s

Quality Gate failed

Annotations

Check warning on line 165 in src/app/app-modules/nurse-doctor/case-record/beneficiary-platform-history/beneficiary-platform-history.component.spec.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer "expect(component.previousMCTSHistoryPagedList).toHaveSize(1)" over this generic assertion for better reporting; it works on any object with a numeric length property.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-UI&issues=AaF8YFutn7u93e0puFKr&open=AaF8YFutn7u93e0puFKr&pullRequest=167

Check warning on line 125 in src/app/app-modules/nurse-doctor/history/general-opd-history/family-history/family-history.component.spec.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer "expect(list()).toHaveSize(0)" over this generic assertion for better reporting; it works on any object with a numeric length property.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-UI&issues=AaF8YFogn7u93e0puFI6&open=AaF8YFogn7u93e0puFI6&pullRequest=167

Check warning on line 213 in src/app/app-modules/nurse-doctor/history/general-opd-history/past-obsteric-history/past-obsteric-history.component.spec.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer "expect(component.complicationOptionConstraints).toHaveSize(1)" over this generic assertion for better reporting; it works on any object with a numeric length property.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-UI&issues=AaF8YFoAn7u93e0puFIS&open=AaF8YFoAn7u93e0puFIS&pullRequest=167

Check warning on line 316 in src/app/app-modules/nurse-doctor/case-record/general-case-record/diagnosis/pnc-diagnosis/pnc-diagnosis.component.spec.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer "expect(conf()).toHaveSize(1)" over this generic assertion for better reporting; it works on any object with a numeric length property.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-UI&issues=AaF8YFt-n7u93e0puFKF&open=AaF8YFt-n7u93e0puFKF&pullRequest=167

Check warning on line 196 in src/app/app-modules/nurse-doctor/visit-details/chief-complaints/chief-complaints.component.spec.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer "expect(complaints()).toHaveSize(1)" over this generic assertion for better reporting; it works on any object with a numeric length property.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-UI&issues=AaF8YFxHn7u93e0puFK8&open=AaF8YFxHn7u93e0puFK8&pullRequest=167

Check warning on line 186 in src/app/app-modules/set-security-questions/set-security-questions.component.spec.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer "expect(component.questions).toHaveSize(3)" over this generic assertion for better reporting; it works on any object with a numeric length property.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-UI&issues=AaF8YFzOn7u93e0puFMJ&open=AaF8YFzOn7u93e0puFMJ&pullRequest=167

Check warning on line 228 in src/app/app-modules/nurse-doctor/history/cancer-history/family-disease-history/family-disease-history.component.spec.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer "expect(diseases()).toHaveSize(1)" over this generic assertion for better reporting; it works on any object with a numeric length property.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-UI&issues=AaF8YFnin7u93e0puFHx&open=AaF8YFnin7u93e0puFHx&pullRequest=167

Check warning on line 139 in src/app/app-modules/nurse-doctor/doctor-worklist/doctor-worklist.component.spec.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer "expect(component.displayedColumns).toHaveSize(10)" over this generic assertion for better reporting; it works on any object with a numeric length property.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-UI&issues=AaF8YFykn7u93e0puFLz&open=AaF8YFykn7u93e0puFLz&pullRequest=167

Check warning on line 240 in src/app/app-modules/nurse-doctor/history/general-opd-history/past-obsteric-history/past-obsteric-history.component.spec.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer "expect(list()).toHaveSize(1)" over this generic assertion for better reporting; it works on any object with a numeric length property.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-UI&issues=AaF8YFoAn7u93e0puFIU&open=AaF8YFoAn7u93e0puFIU&pullRequest=167

Check warning on line 237 in src/app/app-modules/nurse-doctor/history/cancer-history/family-disease-history/family-disease-history.component.spec.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer "expect(diseases()).toHaveSize(2)" over this generic assertion for better reporting; it works on any object with a numeric length property.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-UI&issues=AaF8YFnin7u93e0puFHz&open=AaF8YFnin7u93e0puFHz&pullRequest=167

Check warning on line 259 in src/app/app-modules/nurse-doctor/history/general-opd-history/other-vaccines/other-vaccines.component.spec.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer "expect(list()).toHaveSize(1)" over this generic assertion for better reporting; it works on any object with a numeric length property.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-UI&issues=AaF8YFoLn7u93e0puFIY&open=AaF8YFoLn7u93e0puFIY&pullRequest=167

Check warning on line 1361 in src/app/app-modules/nurse-doctor/workarea/workarea.component.spec.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer "expect(payload.labTestOrders).toHaveSize(2)" over this generic assertion for better reporting; it works on any object with a numeric length property.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-UI&issues=AaF8YFtcn7u93e0puFJm&open=AaF8YFtcn7u93e0puFJm&pullRequest=167

Check warning on line 203 in src/app/app-modules/nurse-doctor/history/general-opd-history/family-history/family-history.component.spec.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer "expect(list()).toHaveSize(1)" over this generic assertion for better reporting; it works on any object with a numeric length property.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-UI&issues=AaF8YFogn7u93e0puFI9&open=AaF8YFogn7u93e0puFI9&pullRequest=167

Check warning on line 227 in src/app/app-modules/nurse-doctor/history/general-opd-history/family-history-ncdscreening/family-history-ncdscreening.component.spec.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer "expect(list()).toHaveSize(2)" over this generic assertion for better reporting; it works on any object with a numeric length property.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-UI&issues=AaF8YFn1n7u93e0puFIA&open=AaF8YFn1n7u93e0puFIA&pullRequest=167

Check warning on line 158 in src/app/app-modules/pharmacist/worklist/worklist.component.spec.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer "expect(component.filteredBeneficiaryList).toHaveSize(1)" over this generic assertion for better reporting; it works on any object with a numeric length property.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-UI&issues=AaF8YFzDn7u93e0puFMB&open=AaF8YFzDn7u93e0puFMB&pullRequest=167

Check warning on line 266 in src/app/app-modules/registrar/health-id-otp-generation/health-id-otp-generation.component.spec.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer "expect(component.registrarMasterData.genderMaster).toHaveSize(3)" over this generic assertion for better reporting; it works on any object with a numeric length property.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-UI&issues=AaF8YFmun7u93e0puFHb&open=AaF8YFmun7u93e0puFHb&pullRequest=167

Check warning on line 256 in src/app/app-modules/nurse-doctor/history/cancer-history/family-disease-history/family-disease-history.component.spec.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer "expect(diseases()).toHaveSize(2)" over this generic assertion for better reporting; it works on any object with a numeric length property.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-UI&issues=AaF8YFnin7u93e0puFH0&open=AaF8YFnin7u93e0puFH0&pullRequest=167

Check warning on line 194 in src/app/app-modules/nurse-doctor/case-record/general-case-record/diagnosis/ncd-care-diagnosis/ncd-care-diagnosis.component.spec.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer "expect(list()).toHaveSize(30)" over this generic assertion for better reporting; it works on any object with a numeric length property.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-UI&issues=AaF8YFuEn7u93e0puFKL&open=AaF8YFuEn7u93e0puFKL&pullRequest=167

Check warning on line 111 in src/app/app-modules/nurse-doctor/nurse-worklist-wrapper/nurse-worklist/nurse-worklist.component.spec.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer "expect(component.dataSource.data).toHaveSize(2)" over this generic assertion for better reporting; it works on any object with a numeric length property.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-UI&issues=AaF8YFxVn7u93e0puFLD&open=AaF8YFxVn7u93e0puFLD&pullRequest=167

Check warning on line 178 in src/app/app-modules/set-security-questions/set-security-questions.component.spec.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer "expect(component.Q_array_two).toHaveSize(3)" over this generic assertion for better reporting; it works on any object with a numeric length property.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-UI&issues=AaF8YFzOn7u93e0puFMF&open=AaF8YFzOn7u93e0puFMF&pullRequest=167

Check warning on line 187 in src/app/app-modules/set-security-questions/set-security-questions.component.spec.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer "expect(component.Q_array_two).toHaveSize(4)" over this generic assertion for better reporting; it works on any object with a numeric length property.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-UI&issues=AaF8YFzOn7u93e0puFMK&open=AaF8YFzOn7u93e0puFMK&pullRequest=167

Check warning on line 839 in src/app/app-modules/nurse-doctor/quick-consult/quick-consult.component.spec.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer "expect(complaints()).toHaveSize(1)" over this generic assertion for better reporting; it works on any object with a numeric length property.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-UI&issues=AaF8YFyOn7u93e0puFLn&open=AaF8YFyOn7u93e0puFLn&pullRequest=167

Check warning on line 148 in src/app/app-modules/nurse-doctor/examination/general-opd-examination/general-examination/general-examination.component.spec.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer "expect(component.selectExtentOfEdema).toHaveSize(4)" over this generic assertion for better reporting; it works on any object with a numeric length property.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-UI&issues=AaF8YFq9n7u93e0puFJe&open=AaF8YFq9n7u93e0puFJe&pullRequest=167

Check failure on line 36 in src/app/app-modules/core/services/common-services.service.spec.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Add at least one assertion to this test case.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-UI&issues=AaF8YFmFn7u93e0puFG7&open=AaF8YFmFn7u93e0puFG7&pullRequest=167

Check warning on line 377 in src/app/app-modules/nurse-doctor/history/general-opd-history/family-history-ncdscreening/family-history-ncdscreening.component.spec.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer "expect(list()).toHaveSize(2)" over this generic assertion for better reporting; it works on any object with a numeric length property.

See more on https://sonarcloud.io/project/issues?id=PSMRI_TM-UI&issues=AaF8YFn1n7u93e0puFIJ&open=AaF8YFn1n7u93e0puFIJ&pullRequest=167