mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 23:13:04 +00:00
fixed documentation
This commit is contained in:
@@ -30,8 +30,7 @@ describe('AdminSidebarComponent', () => {
|
|||||||
{ provide: AuthService, useClass: AuthServiceStub },
|
{ provide: AuthService, useClass: AuthServiceStub },
|
||||||
{
|
{
|
||||||
provide: NgbModal, useValue: {
|
provide: NgbModal, useValue: {
|
||||||
open: () => {
|
open: () => {/*comment*/}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@@ -31,7 +31,7 @@ export class CreateCollectionParentSelectorComponent extends DSOSelectorModalWra
|
|||||||
* Navigate to the collection create page
|
* Navigate to the collection create page
|
||||||
*/
|
*/
|
||||||
navigate(dso: DSpaceObject) {
|
navigate(dso: DSpaceObject) {
|
||||||
let navigationExtras: NavigationExtras = {
|
const navigationExtras: NavigationExtras = {
|
||||||
queryParams: {
|
queryParams: {
|
||||||
[COLLECTION_PARENT_PARAMETER]: dso.uuid,
|
[COLLECTION_PARENT_PARAMETER]: dso.uuid,
|
||||||
}
|
}
|
||||||
|
@@ -93,7 +93,6 @@ describe('DSOSelectorModalWrapperComponent', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
describe('when the onSelect method emits on the child component', () => {
|
describe('when the onSelect method emits on the child component', () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
spyOn(component, 'selectObject');
|
spyOn(component, 'selectObject');
|
||||||
@@ -131,5 +130,6 @@ class TestComponent extends DSOSelectorModalWrapperComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
navigate(dso: DSpaceObject) {
|
navigate(dso: DSpaceObject) {
|
||||||
|
/* comment */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -42,7 +42,7 @@ export abstract class DSOSelectorModalWrapperComponent implements OnInit {
|
|||||||
*/
|
*/
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
const typeString = this.selectorType.toString().toLowerCase();
|
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;
|
let debugElement: DebugElement;
|
||||||
const text = 'HELLO';
|
const text = 'HELLO';
|
||||||
const func = () => {
|
const func = () => {
|
||||||
|
/* comment */
|
||||||
};
|
};
|
||||||
const item = Object.assign(new OnClickMenuItemModel(), { text, function: func });
|
const item = Object.assign(new OnClickMenuItemModel(), { text, function: func });
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user