71304: Fix spec descriptions

This commit is contained in:
Yana De Pauw
2020-06-16 15:58:19 +02:00
parent 6f9f4ec968
commit e277a72ebf
2 changed files with 3 additions and 3 deletions

View File

@@ -64,7 +64,7 @@ describe('RegisterEmailComponent', () => {
comp.form.patchValue({email: 'invalid'}); comp.form.patchValue({email: 'invalid'});
expect(comp.form.invalid).toBeTrue(); expect(comp.form.invalid).toBeTrue();
}); });
it('should be invalid when no valid email is present', () => { it('should be valid when a valid email is present', () => {
comp.form.patchValue({email: 'valid@email.org'}); comp.form.patchValue({email: 'valid@email.org'});
expect(comp.form.invalid).toBeFalse(); expect(comp.form.invalid).toBeFalse();
}); });

View File

@@ -160,7 +160,7 @@ describe('CreateProfileComponent', () => {
expect(router.navigate).not.toHaveBeenCalled(); expect(router.navigate).not.toHaveBeenCalled();
expect(notificationsService.error).toHaveBeenCalled(); expect(notificationsService.error).toHaveBeenCalled();
}); });
it('should submit not submit an eperson when the user info form is invalid', () => { it('should submit not create an eperson when the user info form is invalid', () => {
(ePersonDataService.createEPersonForToken as jasmine.Spy).and.returnValue(observableOf(new RestResponse(false, 500, 'Error'))); (ePersonDataService.createEPersonForToken as jasmine.Spy).and.returnValue(observableOf(new RestResponse(false, 500, 'Error')));
@@ -175,7 +175,7 @@ describe('CreateProfileComponent', () => {
expect(ePersonDataService.createEPersonForToken).not.toHaveBeenCalled(); expect(ePersonDataService.createEPersonForToken).not.toHaveBeenCalled();
}); });
it('should submit not submit an eperson when the password is invalid', () => { it('should submit not create an eperson when the password is invalid', () => {
(ePersonDataService.createEPersonForToken as jasmine.Spy).and.returnValue(observableOf(new RestResponse(false, 500, 'Error'))); (ePersonDataService.createEPersonForToken as jasmine.Spy).and.returnValue(observableOf(new RestResponse(false, 500, 'Error')));