mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
lint
This commit is contained in:
@@ -73,7 +73,10 @@ describe('ConfirmationModalComponent', () => {
|
||||
describe('when the click method emits on close button', () => {
|
||||
beforeEach(fakeAsync(() => {
|
||||
spyOn(component, 'close');
|
||||
debugElement.query(By.css('button.close')).triggerEventHandler('click', {});
|
||||
debugElement.query(By.css('button.close')).triggerEventHandler('click', {
|
||||
preventDefault: () => {/**/
|
||||
}
|
||||
});
|
||||
tick();
|
||||
fixture.detectChanges();
|
||||
}));
|
||||
@@ -86,7 +89,10 @@ describe('ConfirmationModalComponent', () => {
|
||||
beforeEach(fakeAsync(() => {
|
||||
spyOn(component, 'close');
|
||||
spyOn(component.response, 'next');
|
||||
debugElement.query(By.css('button.cancel')).triggerEventHandler('click', {});
|
||||
debugElement.query(By.css('button.cancel')).triggerEventHandler('click', {
|
||||
preventDefault: () => {/**/
|
||||
}
|
||||
});
|
||||
tick();
|
||||
fixture.detectChanges();
|
||||
}));
|
||||
@@ -102,7 +108,10 @@ describe('ConfirmationModalComponent', () => {
|
||||
beforeEach(fakeAsync(() => {
|
||||
spyOn(component, 'close');
|
||||
spyOn(component.response, 'next');
|
||||
debugElement.query(By.css('button.confirm')).triggerEventHandler('click', {});
|
||||
debugElement.query(By.css('button.confirm')).triggerEventHandler('click', {
|
||||
preventDefault: () => {/**/
|
||||
}
|
||||
});
|
||||
tick();
|
||||
fixture.detectChanges();
|
||||
}));
|
||||
|
@@ -17,7 +17,6 @@ import { NotificationsServiceStub } from '../../../testing/notifications-service
|
||||
import { createSuccessfulRemoteDataObject } from '../../../remote-data.utils';
|
||||
import { ExportMetadataSelectorComponent } from './export-metadata-selector.component';
|
||||
|
||||
|
||||
// No way to add entryComponents yet to testbed; alternative implemented; source: https://stackoverflow.com/questions/41689468/how-to-shallow-test-a-component-with-an-entrycomponents
|
||||
@NgModule({
|
||||
imports: [ NgbModalModule,
|
||||
|
@@ -59,8 +59,8 @@ export class ExportMetadataSelectorComponent extends DSOSelectorModalWrapperComp
|
||||
})
|
||||
)
|
||||
} else {
|
||||
const modalRef = this.modalService.open(ExportMetadataSelectorComponent);
|
||||
modalRef.componentInstance.dsoRD = createSuccessfulRemoteDataObject(dso);
|
||||
const modalRefExport = this.modalService.open(ExportMetadataSelectorComponent);
|
||||
modalRefExport.componentInstance.dsoRD = createSuccessfulRemoteDataObject(dso);
|
||||
}
|
||||
}));
|
||||
resp$.subscribe();
|
||||
|
Reference in New Issue
Block a user