mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
55946: TSLint fixes
This commit is contained in:
@@ -25,7 +25,6 @@ export class CommunityPageComponent implements OnInit, OnDestroy {
|
|||||||
communityRD$: Observable<RemoteData<Community>>;
|
communityRD$: Observable<RemoteData<Community>>;
|
||||||
logoRD$: Observable<RemoteData<Bitstream>>;
|
logoRD$: Observable<RemoteData<Bitstream>>;
|
||||||
|
|
||||||
|
|
||||||
private subs: Subscription[] = [];
|
private subs: Subscription[] = [];
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
@@ -42,14 +41,10 @@ export class CommunityPageComponent implements OnInit, OnDestroy {
|
|||||||
map((rd: RemoteData<Community>) => rd.payload),
|
map((rd: RemoteData<Community>) => rd.payload),
|
||||||
filter((community: Community) => hasValue(community)),
|
filter((community: Community) => hasValue(community)),
|
||||||
mergeMap((community: Community) => community.logo));
|
mergeMap((community: Community) => community.logo));
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnDestroy(): void {
|
ngOnDestroy(): void {
|
||||||
this.subs.filter((sub) => hasValue(sub)).forEach((sub) => sub.unsubscribe());
|
this.subs.filter((sub) => hasValue(sub)).forEach((sub) => sub.unsubscribe());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@@ -36,7 +36,6 @@ describe('ConfigService', () => {
|
|||||||
const scopedEndpoint = `${serviceEndpoint}/${scopeName}`;
|
const scopedEndpoint = `${serviceEndpoint}/${scopeName}`;
|
||||||
const searchEndpoint = `${serviceEndpoint}/${BROWSE}?uuid=${scopeID}`;
|
const searchEndpoint = `${serviceEndpoint}/${BROWSE}?uuid=${scopeID}`;
|
||||||
|
|
||||||
|
|
||||||
function initTestService(): TestService {
|
function initTestService(): TestService {
|
||||||
return new TestService(
|
return new TestService(
|
||||||
requestService,
|
requestService,
|
||||||
|
@@ -40,7 +40,7 @@ describe('IntegrationService', () => {
|
|||||||
|
|
||||||
findOptions = new IntegrationSearchOptions(uuid, name, metadata);
|
findOptions = new IntegrationSearchOptions(uuid, name, metadata);
|
||||||
|
|
||||||
function initTestService(): TestService {
|
function initTestService(): TestService {
|
||||||
return new TestService(
|
return new TestService(
|
||||||
requestService,
|
requestService,
|
||||||
halService
|
halService
|
||||||
|
@@ -6,5 +6,5 @@ import { Directive, Input } from '@angular/core';
|
|||||||
selector: '[queryParams]',
|
selector: '[queryParams]',
|
||||||
})
|
})
|
||||||
export class QueryParamsDirectiveStub {
|
export class QueryParamsDirectiveStub {
|
||||||
@Input('queryParams') queryParams: any;
|
@Input() queryParams: any;
|
||||||
}
|
}
|
||||||
|
@@ -41,4 +41,4 @@ export function spyOnOperator(obj: any, prop: string): any {
|
|||||||
});
|
});
|
||||||
|
|
||||||
return spyOn(obj, prop);
|
return spyOn(obj, prop);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user