mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[no-issue] Fix translate module - 1st iteration (#4290)
* [no-issue] Fix translate module - 1st iteration * restore translate exports * move i18n to the app level, fix lazy loading * improve i18n imports * update unit tests * fix unit tests * test fixes
This commit is contained in:
committed by
Eugenio Romano
parent
0683c4d226
commit
7bf5e59740
@@ -21,7 +21,7 @@ import { ContentModule, ContentNodeSelectorPanelComponent } from '@alfresco/adf-
|
||||
import { EventEmitter } from '@angular/core';
|
||||
import { ProcessTestingModule } from '../testing/process.testing.module';
|
||||
import { AttachFileWidgetDialogComponent } from './attach-file-widget-dialog.component';
|
||||
import { setupTestBed, AuthenticationService, SitesService } from '@alfresco/adf-core';
|
||||
import { setupTestBed, AuthenticationService, SitesService, CoreModule } from '@alfresco/adf-core';
|
||||
import { AttachFileWidgetDialogComponentData } from './attach-file-widget-dialog-component.interface';
|
||||
import { RouterTestingModule } from '@angular/router/testing';
|
||||
import { of } from 'rxjs';
|
||||
@@ -46,6 +46,7 @@ describe('AttachFileWidgetDialogComponent', () => {
|
||||
|
||||
setupTestBed({
|
||||
imports: [
|
||||
CoreModule.forRoot(),
|
||||
ProcessTestingModule,
|
||||
ContentModule.forRoot(),
|
||||
RouterTestingModule
|
||||
|
@@ -19,7 +19,7 @@ import { TestBed } from '@angular/core/testing';
|
||||
import { MatDialog } from '@angular/material';
|
||||
import { AttachFileWidgetDialogService } from './attach-file-widget-dialog.service';
|
||||
import { Subject, of } from 'rxjs';
|
||||
import { setupTestBed } from '@alfresco/adf-core';
|
||||
import { setupTestBed, CoreModule } from '@alfresco/adf-core';
|
||||
import { ProcessModule } from '../process.module';
|
||||
|
||||
describe('AttachFileWidgetDialogService', () => {
|
||||
@@ -30,7 +30,10 @@ describe('AttachFileWidgetDialogService', () => {
|
||||
let afterOpenObservable: Subject<any>;
|
||||
|
||||
setupTestBed({
|
||||
imports: [ProcessModule.forRoot()]
|
||||
imports: [
|
||||
CoreModule.forRoot(),
|
||||
ProcessModule.forRoot()
|
||||
]
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
|
Reference in New Issue
Block a user