Skip to content

Commit c6fd55b

Browse files
author
Jens Vannerum
committed
96062: Alter test to match themed component
1 parent 70fe46a commit c6fd55b

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/app/my-dspace-page/collection-selector/collection-selector.component.spec.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,13 @@ describe('CollectionSelectorComponent', () => {
128128

129129
beforeEach(() => {
130130
scheduler = getTestScheduler();
131-
fixture = TestBed.createComponent(CollectionSelectorComponent);
131+
fixture = TestBed.overrideComponent(CollectionSelectorComponent, {
132+
set: {
133+
template: '<ds-collection-dropdown (selectionChange)="selectObject($event)"></ds-collection-dropdown>'
134+
}
135+
}).createComponent(CollectionSelectorComponent);
132136
component = fixture.componentInstance;
133137
fixture.detectChanges();
134-
135138
});
136139

137140
it('should create', () => {

src/app/submission/import-external/import-external-collection/submission-import-external-collection.component.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ describe('SubmissionImportExternalCollectionComponent test suite', () => {
122122
fixture.detectChanges();
123123

124124
fixture.whenStable().then(() => {
125-
const dropdownMenu = fixture.debugElement.query(By.css('ds-collection-dropdown')).nativeElement;
125+
const dropdownMenu = fixture.debugElement.query(By.css('ds-themed-collection-dropdown')).nativeElement;
126126
expect(dropdownMenu.classList).toContain('d-none');
127127
});
128128
}));

0 commit comments

Comments
 (0)