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:
Denys Vuika
2018-06-12 10:38:20 +01:00
committed by GitHub
parent 0c696b5991
commit 56e4826053
7 changed files with 140 additions and 36 deletions

View File

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