mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-09-17 14:21:14 +00:00
unit testing enhancements (#401)
* app testing module * reduce favorites test dependencies * remove fdescribe * setup store integration for app testing module
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
*/
|
||||
|
||||
import { Component, OnInit, OnDestroy } from '@angular/core';
|
||||
import { PeopleContentService, AppConfigService } from '@alfresco/adf-core';
|
||||
import { PeopleContentService } from '@alfresco/adf-core';
|
||||
import { Subscription } from 'rxjs/Rx';
|
||||
|
||||
@Component({
|
||||
@@ -38,8 +38,7 @@ export class CurrentUserComponent implements OnInit, OnDestroy {
|
||||
user: any = null;
|
||||
|
||||
constructor(
|
||||
private peopleApi: PeopleContentService,
|
||||
private appConfig: AppConfigService
|
||||
private peopleApi: PeopleContentService
|
||||
) {}
|
||||
|
||||
ngOnInit() {
|
||||
@@ -71,8 +70,4 @@ export class CurrentUserComponent implements OnInit, OnDestroy {
|
||||
const { userFirstName: first, userLastName: last } = this;
|
||||
return [ first[0], last[0] ].join('');
|
||||
}
|
||||
|
||||
get showLanguagePicker() {
|
||||
return this.appConfig.get('languagePicker') || false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user