mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +00:00
58522: delete tests and docs
This commit is contained in:
@@ -28,7 +28,7 @@ describe('DeleteComColPageComponent', () => {
|
|||||||
let notificationsService;
|
let notificationsService;
|
||||||
const validUUID = 'valid-uuid';
|
const validUUID = 'valid-uuid';
|
||||||
const invalidUUID = 'invalid-uuid';
|
const invalidUUID = 'invalid-uuid';
|
||||||
|
const frontendURL = '/testType';
|
||||||
function initializeVars() {
|
function initializeVars() {
|
||||||
community = Object.assign(new Community(), {
|
community = Object.assign(new Community(), {
|
||||||
uuid: 'a20da287-e174-466a-9926-f66b9300d347',
|
uuid: 'a20da287-e174-466a-9926-f66b9300d347',
|
||||||
@@ -81,6 +81,7 @@ describe('DeleteComColPageComponent', () => {
|
|||||||
comp = fixture.componentInstance;
|
comp = fixture.componentInstance;
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
notificationsService = (comp as any).notifications;
|
notificationsService = (comp as any).notifications;
|
||||||
|
(comp as any).frontendURL = frontendURL;
|
||||||
router = (comp as any).router;
|
router = (comp as any).router;
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -144,7 +145,7 @@ describe('DeleteComColPageComponent', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should redirect to the edit page', () => {
|
it('should redirect to the edit page', () => {
|
||||||
const redirectURL = 'communities/edit/' + validUUID;
|
const redirectURL = frontendURL + '/' + validUUID + '/edit';
|
||||||
spyOn(router, 'navigate');
|
spyOn(router, 'navigate');
|
||||||
comp.onCancel(data1);
|
comp.onCancel(data1);
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
|
Reference in New Issue
Block a user