mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
Fix test after changes for failure notification on updateEPerson
This commit is contained in:
@@ -190,7 +190,7 @@ describe('EPeopleRegistryComponent', () => {
|
|||||||
it('first ePerson is deleted', () => {
|
it('first ePerson is deleted', () => {
|
||||||
expect(ePeopleIdsFoundBeforeDelete.length === ePeopleIdsFoundAfterDelete + 1);
|
expect(ePeopleIdsFoundBeforeDelete.length === ePeopleIdsFoundAfterDelete + 1);
|
||||||
ePeopleIdsFoundAfterDelete.forEach((epersonElement) => {
|
ePeopleIdsFoundAfterDelete.forEach((epersonElement) => {
|
||||||
expect(epersonElement.nativeElement.textContent !== ePeopleIdsFoundBeforeDelete[0].nativeElement.textContent).toBeTrue();
|
expect(epersonElement !== ePeopleIdsFoundBeforeDelete[0].nativeElement.textContent).toBeTrue();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@@ -146,9 +146,10 @@ export class EPersonDataService extends DataService<EPerson> {
|
|||||||
map((oldEPerson: EPerson) => {
|
map((oldEPerson: EPerson) => {
|
||||||
const operations = this.generateOperations(oldEPerson, ePerson);
|
const operations = this.generateOperations(oldEPerson, ePerson);
|
||||||
const patchRequest = new PatchRequest(requestId, ePerson._links.self.href, operations);
|
const patchRequest = new PatchRequest(requestId, ePerson._links.self.href, operations);
|
||||||
this.requestService.configure(patchRequest);
|
return this.requestService.configure(patchRequest);
|
||||||
}),
|
}),
|
||||||
);
|
take(1)
|
||||||
|
).subscribe();
|
||||||
|
|
||||||
return this.fetchResponse(requestId);
|
return this.fetchResponse(requestId);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user