fixed documentation

This commit is contained in:
lotte
2019-03-08 08:51:33 +01:00
parent 56271c3514
commit ede9f05e92
6 changed files with 6 additions and 6 deletions

View File

@@ -30,8 +30,7 @@ describe('AdminSidebarComponent', () => {
{ provide: AuthService, useClass: AuthServiceStub }, { provide: AuthService, useClass: AuthServiceStub },
{ {
provide: NgbModal, useValue: { provide: NgbModal, useValue: {
open: () => { open: () => {/*comment*/}
}
} }
} }
], ],

View File

@@ -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,
} }

View File

@@ -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 */
} }
} }

View File

@@ -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]));
} }
/** /**

View File

@@ -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 });