mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-13 13:03:04 +00:00
71304: Fix spec descriptions
This commit is contained in:
@@ -64,7 +64,7 @@ describe('RegisterEmailComponent', () => {
|
||||
comp.form.patchValue({email: 'invalid'});
|
||||
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'});
|
||||
expect(comp.form.invalid).toBeFalse();
|
||||
});
|
||||
|
@@ -160,7 +160,7 @@ describe('CreateProfileComponent', () => {
|
||||
expect(router.navigate).not.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')));
|
||||
|
||||
@@ -175,7 +175,7 @@ describe('CreateProfileComponent', () => {
|
||||
|
||||
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')));
|
||||
|
||||
|
Reference in New Issue
Block a user