[CST-6110] Remove check for password length

This commit is contained in:
Giuseppe Digilio
2022-09-19 18:09:05 +02:00
parent ee46594b5b
commit 4ca5571a2b
13 changed files with 23 additions and 131 deletions

View File

@@ -239,23 +239,6 @@ describe('CreateProfileComponent', () => {
expect(notificationsService.error).toHaveBeenCalled();
});
it('should submit an eperson for creation but password is weak', () => {
(ePersonDataService.createEPersonForToken as jasmine.Spy).and.returnValue(createFailedRemoteDataObject$('Error', 422));
comp.firstName.patchValue('First');
comp.lastName.patchValue('Last');
comp.contactPhone.patchValue('Phone');
comp.language.patchValue('en');
comp.password = 'password';
comp.isInValidPassword = false;
comp.submitEperson();
expect(ePersonDataService.createEPersonForToken).toHaveBeenCalledWith(eperson, 'test-token');
expect(comp.isRobustPasswordError.value).toBeTrue();
});
it('should submit not create an eperson when the user info form is invalid', () => {
(ePersonDataService.createEPersonForToken as jasmine.Spy).and.returnValue(createFailedRemoteDataObject$('Error', 500));