diff --git a/packages/esm-patient-registration-app/src/patient-registration/form-manager.test.ts b/packages/esm-patient-registration-app/src/patient-registration/form-manager.test.ts index 9c0bf42b2..e2e6eea63 100644 --- a/packages/esm-patient-registration-app/src/patient-registration/form-manager.test.ts +++ b/packages/esm-patient-registration-app/src/patient-registration/form-manager.test.ts @@ -76,6 +76,7 @@ describe('FormManager', () => { await FormManager.savePatientIdentifiers(true, undefined, formValues.identifiers, {}, 'Nyc'); expect(mockGenerateIdentifier.mock.calls).toHaveLength(1); }); + it('should not generate identifiers if manual entry enabled and identifier value given', async () => { formValues.identifiers.foo.autoGeneration = true; formValues.identifiers.foo.selectedSource.autoGenerationOption.manualEntryEnabled = true;