mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACA-4205] Latest ADF and unit test fixes (#1861)
* upgrade ADF and cleanup test * unit test stabilisation * cleanup tests * unit test stabilisation * unit test stabilisation * update ADF libs to latest alphas
This commit is contained in:
@@ -25,15 +25,7 @@
|
||||
|
||||
import { PaginationDirective } from './pagination.directive';
|
||||
import { TestBed, ComponentFixture } from '@angular/core/testing';
|
||||
import {
|
||||
UserPreferencesService,
|
||||
AppConfigService,
|
||||
PaginationComponent,
|
||||
PaginationModel,
|
||||
AlfrescoApiService,
|
||||
AlfrescoApiServiceMock,
|
||||
CoreTestingModule
|
||||
} from '@alfresco/adf-core';
|
||||
import { UserPreferencesService, AppConfigService, PaginationComponent, PaginationModel, CoreTestingModule } from '@alfresco/adf-core';
|
||||
import { LibTestingModule } from '../testing/lib-testing-module';
|
||||
import { SharedDirectivesModule } from './shared.directives.module';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
@@ -47,8 +39,7 @@ describe('PaginationDirective', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
imports: [TranslateModule.forRoot(), LibTestingModule, SharedDirectivesModule, CoreTestingModule],
|
||||
providers: [{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock }]
|
||||
imports: [TranslateModule.forRoot(), LibTestingModule, SharedDirectivesModule, CoreTestingModule]
|
||||
});
|
||||
|
||||
preferences = TestBed.inject(UserPreferencesService);
|
||||
|
@@ -94,8 +94,7 @@ export const initialState = {
|
||||
providers: [
|
||||
provideMockStore({ initialState }),
|
||||
{ provide: AlfrescoApiService, useClass: AlfrescoApiServiceMock },
|
||||
{ provide: TranslationService, useClass: TranslationMock },
|
||||
AlfrescoApiService
|
||||
{ provide: TranslationService, useClass: TranslationMock }
|
||||
]
|
||||
})
|
||||
export class LibTestingModule {}
|
||||
|
Reference in New Issue
Block a user