mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-08 18:44:14 +00:00
lint
This commit is contained in:
@@ -73,7 +73,10 @@ describe('ConfirmationModalComponent', () => {
|
|||||||
describe('when the click method emits on close button', () => {
|
describe('when the click method emits on close button', () => {
|
||||||
beforeEach(fakeAsync(() => {
|
beforeEach(fakeAsync(() => {
|
||||||
spyOn(component, 'close');
|
spyOn(component, 'close');
|
||||||
debugElement.query(By.css('button.close')).triggerEventHandler('click', {});
|
debugElement.query(By.css('button.close')).triggerEventHandler('click', {
|
||||||
|
preventDefault: () => {/**/
|
||||||
|
}
|
||||||
|
});
|
||||||
tick();
|
tick();
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
}));
|
}));
|
||||||
@@ -86,7 +89,10 @@ describe('ConfirmationModalComponent', () => {
|
|||||||
beforeEach(fakeAsync(() => {
|
beforeEach(fakeAsync(() => {
|
||||||
spyOn(component, 'close');
|
spyOn(component, 'close');
|
||||||
spyOn(component.response, 'next');
|
spyOn(component.response, 'next');
|
||||||
debugElement.query(By.css('button.cancel')).triggerEventHandler('click', {});
|
debugElement.query(By.css('button.cancel')).triggerEventHandler('click', {
|
||||||
|
preventDefault: () => {/**/
|
||||||
|
}
|
||||||
|
});
|
||||||
tick();
|
tick();
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
}));
|
}));
|
||||||
@@ -102,7 +108,10 @@ describe('ConfirmationModalComponent', () => {
|
|||||||
beforeEach(fakeAsync(() => {
|
beforeEach(fakeAsync(() => {
|
||||||
spyOn(component, 'close');
|
spyOn(component, 'close');
|
||||||
spyOn(component.response, 'next');
|
spyOn(component.response, 'next');
|
||||||
debugElement.query(By.css('button.confirm')).triggerEventHandler('click', {});
|
debugElement.query(By.css('button.confirm')).triggerEventHandler('click', {
|
||||||
|
preventDefault: () => {/**/
|
||||||
|
}
|
||||||
|
});
|
||||||
tick();
|
tick();
|
||||||
fixture.detectChanges();
|
fixture.detectChanges();
|
||||||
}));
|
}));
|
||||||
|
@@ -17,7 +17,6 @@ import { NotificationsServiceStub } from '../../../testing/notifications-service
|
|||||||
import { createSuccessfulRemoteDataObject } from '../../../remote-data.utils';
|
import { createSuccessfulRemoteDataObject } from '../../../remote-data.utils';
|
||||||
import { ExportMetadataSelectorComponent } from './export-metadata-selector.component';
|
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
|
// 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({
|
@NgModule({
|
||||||
imports: [ NgbModalModule,
|
imports: [ NgbModalModule,
|
||||||
|
@@ -59,8 +59,8 @@ export class ExportMetadataSelectorComponent extends DSOSelectorModalWrapperComp
|
|||||||
})
|
})
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
const modalRef = this.modalService.open(ExportMetadataSelectorComponent);
|
const modalRefExport = this.modalService.open(ExportMetadataSelectorComponent);
|
||||||
modalRef.componentInstance.dsoRD = createSuccessfulRemoteDataObject(dso);
|
modalRefExport.componentInstance.dsoRD = createSuccessfulRemoteDataObject(dso);
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
resp$.subscribe();
|
resp$.subscribe();
|
||||||
|
Reference in New Issue
Block a user