mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-983] User Preferences Service (#2044)
* user preferences service * unit tests and code improvements * fix tests * fix tests * fix tests * add missing production settings * readme updates * integrate with the core module
This commit is contained in:
committed by
Eugenio Romano
parent
ac9b660e83
commit
70a3c863e6
@@ -18,7 +18,7 @@
|
||||
import { DebugElement } from '@angular/core';
|
||||
import { ComponentFixture, TestBed, async } from '@angular/core/testing';
|
||||
import { Observable } from 'rxjs/Rx';
|
||||
import { CoreModule, AlfrescoTranslationService } from 'ng2-alfresco-core';
|
||||
import { CoreModule, AlfrescoTranslationService, AppConfigModule } from 'ng2-alfresco-core';
|
||||
import { AnalyticsReportListComponent } from '../components/analytics-report-list.component';
|
||||
import { AnalyticsService } from '../services/analytics.service';
|
||||
import { ReportParametersModel } from '../models/report.model';
|
||||
@@ -45,7 +45,10 @@ describe('AnalyticsReportListComponent', () => {
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [
|
||||
CoreModule.forRoot()
|
||||
CoreModule.forRoot(),
|
||||
AppConfigModule.forRoot('app.config.json', {
|
||||
bpmHost: 'http://localhost:9876/bpm'
|
||||
})
|
||||
],
|
||||
declarations: [
|
||||
AnalyticsReportListComponent
|
||||
|
@@ -20,7 +20,7 @@ import { DebugElement, SimpleChange } from '@angular/core';
|
||||
import { MdTooltipModule, MdButtonModule, OVERLAY_PROVIDERS } from '@angular/material';
|
||||
import { Observable } from 'rxjs/Rx';
|
||||
import * as moment from 'moment';
|
||||
import { CoreModule, AlfrescoTranslationService } from 'ng2-alfresco-core';
|
||||
import { CoreModule, AlfrescoTranslationService, AppConfigModule } from 'ng2-alfresco-core';
|
||||
|
||||
import { AnalyticsReportParametersComponent } from '../components/analytics-report-parameters.component';
|
||||
import { WIDGET_DIRECTIVES } from '../components/widgets/index';
|
||||
@@ -44,6 +44,9 @@ describe('AnalyticsReportParametersComponent', () => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [
|
||||
CoreModule.forRoot(),
|
||||
AppConfigModule.forRoot('app.config.json', {
|
||||
bpmHost: 'http://localhost:9876/bpm'
|
||||
}),
|
||||
MdTooltipModule,
|
||||
MdButtonModule
|
||||
],
|
||||
|
Reference in New Issue
Block a user