diff --git a/src/app/shared/comcol-forms/delete-comcol-page/delete-comcol-page.component.spec.ts b/src/app/shared/comcol-forms/delete-comcol-page/delete-comcol-page.component.spec.ts index 0243cce33b..81ec9c47a0 100644 --- a/src/app/shared/comcol-forms/delete-comcol-page/delete-comcol-page.component.spec.ts +++ b/src/app/shared/comcol-forms/delete-comcol-page/delete-comcol-page.component.spec.ts @@ -28,7 +28,7 @@ describe('DeleteComColPageComponent', () => { let notificationsService; const validUUID = 'valid-uuid'; const invalidUUID = 'invalid-uuid'; - + const frontendURL = '/testType'; function initializeVars() { community = Object.assign(new Community(), { uuid: 'a20da287-e174-466a-9926-f66b9300d347', @@ -81,6 +81,7 @@ describe('DeleteComColPageComponent', () => { comp = fixture.componentInstance; fixture.detectChanges(); notificationsService = (comp as any).notifications; + (comp as any).frontendURL = frontendURL; router = (comp as any).router; }); @@ -144,7 +145,7 @@ describe('DeleteComColPageComponent', () => { }); it('should redirect to the edit page', () => { - const redirectURL = 'communities/edit/' + validUUID; + const redirectURL = frontendURL + '/' + validUUID + '/edit'; spyOn(router, 'navigate'); comp.onCancel(data1); fixture.detectChanges();