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: NgbModal, useValue: {
open: () => {
}
open: () => {/*comment*/}
}
}
],

View File

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

View File

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

View File

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

View File

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

View File

@@ -12,6 +12,7 @@ describe('OnClickMenuItemComponent', () => {
let debugElement: DebugElement;
const text = 'HELLO';
const func = () => {
/* comment */
};
const item = Object.assign(new OnClickMenuItemModel(), { text, function: func });