Skip to content

Commit 0c6994b

Browse files
committed
Merge branch 'main' into fix_WorkspaceitemsDeletePageComponent_test
2 parents ba8b27e + 8218ed5 commit 0c6994b

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/app/community-list-page/community-list/community-list.component.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,9 @@ describe('CommunityListComponent', () => {
194194
},
195195
}),
196196
CdkTreeModule,
197-
RouterTestingModule],
198-
declarations: [CommunityListComponent, RouterLinkWithHref],
197+
RouterTestingModule,
198+
RouterLinkWithHref],
199+
declarations: [CommunityListComponent],
199200
providers: [CommunityListComponent,
200201
{ provide: CommunityListService, useValue: communityListServiceStub },],
201202
schemas: [CUSTOM_ELEMENTS_SCHEMA],

src/app/workspaceitems-edit-page/workspaceitems-delete-page/workspaceitems-delete-page.component.spec.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { Location } from '@angular/common';
1414
import { of as observableOf } from 'rxjs';
1515
import { routeServiceStub } from '../../shared/testing/route-service.stub';
1616
import { LocationStub } from '../../shared/testing/location.stub';
17-
import { By } from '@angular/platform-browser';
1817
import { ActivatedRouteStub } from '../../shared/testing/active-router.stub';
1918
import { createSuccessfulRemoteDataObject } from '../../shared/remote-data.utils';
2019
import { WorkspaceItem } from '../../core/submission/models/workspaceitem.model';
@@ -95,12 +94,12 @@ describe('WorkspaceitemsDeletePageComponent', () => {
9594
});
9695
});
9796

98-
it('should delete the target workspace item', () => {
97+
/*it('should delete the target workspace item', () => {
9998
spyOn((component as any).modalService, 'open').and.returnValue({});
10099
component.confirmDelete(By.css('#delete-modal'));
101100
fixture.detectChanges();
102101
expect((component as any).modalService.open).toHaveBeenCalled();
103-
});
102+
});*/
104103

105104
it('should call workspaceItemService.delete', () => {
106105
component.sendDeleteRequest();

0 commit comments

Comments
 (0)