mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-16 14:33:03 +00:00
fixed documentation
This commit is contained in:
@@ -30,8 +30,7 @@ describe('AdminSidebarComponent', () => {
|
||||
{ provide: AuthService, useClass: AuthServiceStub },
|
||||
{
|
||||
provide: NgbModal, useValue: {
|
||||
open: () => {
|
||||
}
|
||||
open: () => {/*comment*/}
|
||||
}
|
||||
}
|
||||
],
|
||||
|
@@ -31,7 +31,7 @@ export class CreateCollectionParentSelectorComponent extends DSOSelectorModalWra
|
||||
* Navigate to the collection create page
|
||||
*/
|
||||
navigate(dso: DSpaceObject) {
|
||||
let navigationExtras: NavigationExtras = {
|
||||
const navigationExtras: NavigationExtras = {
|
||||
queryParams: {
|
||||
[COLLECTION_PARENT_PARAMETER]: dso.uuid,
|
||||
}
|
||||
|
@@ -32,6 +32,6 @@ export class CreateItemParentSelectorComponent extends DSOSelectorModalWrapperCo
|
||||
* Navigate to the item create page
|
||||
*/
|
||||
navigate(dso: DSpaceObject) {
|
||||
//There's no submit path per collection yet...
|
||||
// There's no submit path per collection yet...
|
||||
}
|
||||
}
|
||||
|
@@ -93,7 +93,6 @@ describe('DSOSelectorModalWrapperComponent', () => {
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
describe('when the onSelect method emits on the child component', () => {
|
||||
beforeEach(() => {
|
||||
spyOn(component, 'selectObject');
|
||||
@@ -131,5 +130,6 @@ class TestComponent extends DSOSelectorModalWrapperComponent implements OnInit {
|
||||
}
|
||||
|
||||
navigate(dso: DSpaceObject) {
|
||||
/* comment */
|
||||
}
|
||||
}
|
||||
|
@@ -42,7 +42,7 @@ export abstract class DSOSelectorModalWrapperComponent implements OnInit {
|
||||
*/
|
||||
ngOnInit(): void {
|
||||
const typeString = this.selectorType.toString().toLowerCase();
|
||||
this.dsoRD$ = this.route.root.firstChild.firstChild.data.pipe(map(data => data[typeString]));
|
||||
this.dsoRD$ = this.route.root.firstChild.firstChild.data.pipe(map((data) => data[typeString]));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -12,6 +12,7 @@ describe('OnClickMenuItemComponent', () => {
|
||||
let debugElement: DebugElement;
|
||||
const text = 'HELLO';
|
||||
const func = () => {
|
||||
/* comment */
|
||||
};
|
||||
const item = Object.assign(new OnClickMenuItemModel(), { text, function: func });
|
||||
|
||||
|
Reference in New Issue
Block a user