mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACA-2228] Add PipeModule to AppTestingModule (#993)
- fixes unit tests after upgrade to 3.1.0-beta4
This commit is contained in:
committed by
Denys Vuika
parent
7ba886483d
commit
8b0c18629e
@@ -29,8 +29,6 @@ import { UserPreferencesService } from '@alfresco/adf-core';
|
|||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
import {
|
import {
|
||||||
AlfrescoApiService,
|
AlfrescoApiService,
|
||||||
TimeAgoPipe,
|
|
||||||
NodeNameTooltipPipe,
|
|
||||||
NodeFavoriteDirective,
|
NodeFavoriteDirective,
|
||||||
DataTableComponent,
|
DataTableComponent,
|
||||||
AppConfigPipe
|
AppConfigPipe
|
||||||
@@ -71,8 +69,6 @@ describe('FavoriteLibrariesComponent', () => {
|
|||||||
],
|
],
|
||||||
declarations: [
|
declarations: [
|
||||||
DataTableComponent,
|
DataTableComponent,
|
||||||
TimeAgoPipe,
|
|
||||||
NodeNameTooltipPipe,
|
|
||||||
NodeFavoriteDirective,
|
NodeFavoriteDirective,
|
||||||
DocumentListComponent,
|
DocumentListComponent,
|
||||||
FavoriteLibrariesComponent,
|
FavoriteLibrariesComponent,
|
||||||
|
@@ -28,8 +28,6 @@ import { Router } from '@angular/router';
|
|||||||
import { TestBed, ComponentFixture } from '@angular/core/testing';
|
import { TestBed, ComponentFixture } from '@angular/core/testing';
|
||||||
import {
|
import {
|
||||||
AlfrescoApiService,
|
AlfrescoApiService,
|
||||||
TimeAgoPipe,
|
|
||||||
NodeNameTooltipPipe,
|
|
||||||
NodeFavoriteDirective,
|
NodeFavoriteDirective,
|
||||||
DataTableComponent,
|
DataTableComponent,
|
||||||
AppConfigPipe
|
AppConfigPipe
|
||||||
@@ -75,8 +73,6 @@ describe('FavoritesComponent', () => {
|
|||||||
imports: [AppTestingModule],
|
imports: [AppTestingModule],
|
||||||
declarations: [
|
declarations: [
|
||||||
DataTableComponent,
|
DataTableComponent,
|
||||||
TimeAgoPipe,
|
|
||||||
NodeNameTooltipPipe,
|
|
||||||
NodeFavoriteDirective,
|
NodeFavoriteDirective,
|
||||||
DocumentListComponent,
|
DocumentListComponent,
|
||||||
FavoritesComponent,
|
FavoritesComponent,
|
||||||
|
@@ -32,9 +32,6 @@ import {
|
|||||||
import { NO_ERRORS_SCHEMA } from '@angular/core';
|
import { NO_ERRORS_SCHEMA } from '@angular/core';
|
||||||
import { Router, ActivatedRoute } from '@angular/router';
|
import { Router, ActivatedRoute } from '@angular/router';
|
||||||
import {
|
import {
|
||||||
TimeAgoPipe,
|
|
||||||
NodeNameTooltipPipe,
|
|
||||||
FileSizePipe,
|
|
||||||
NodeFavoriteDirective,
|
NodeFavoriteDirective,
|
||||||
DataTableComponent,
|
DataTableComponent,
|
||||||
UploadService,
|
UploadService,
|
||||||
@@ -62,11 +59,8 @@ describe('FilesComponent', () => {
|
|||||||
declarations: [
|
declarations: [
|
||||||
FilesComponent,
|
FilesComponent,
|
||||||
DataTableComponent,
|
DataTableComponent,
|
||||||
TimeAgoPipe,
|
|
||||||
NodeNameTooltipPipe,
|
|
||||||
NodeFavoriteDirective,
|
NodeFavoriteDirective,
|
||||||
DocumentListComponent,
|
DocumentListComponent,
|
||||||
FileSizePipe,
|
|
||||||
AppConfigPipe
|
AppConfigPipe
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
|
@@ -28,8 +28,6 @@ import { NO_ERRORS_SCHEMA } from '@angular/core';
|
|||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
import {
|
import {
|
||||||
AlfrescoApiService,
|
AlfrescoApiService,
|
||||||
TimeAgoPipe,
|
|
||||||
NodeNameTooltipPipe,
|
|
||||||
NodeFavoriteDirective,
|
NodeFavoriteDirective,
|
||||||
DataTableComponent,
|
DataTableComponent,
|
||||||
AppConfigPipe
|
AppConfigPipe
|
||||||
@@ -61,8 +59,6 @@ describe('LibrariesComponent', () => {
|
|||||||
imports: [AppTestingModule, EffectsModule.forRoot([LibraryEffects])],
|
imports: [AppTestingModule, EffectsModule.forRoot([LibraryEffects])],
|
||||||
declarations: [
|
declarations: [
|
||||||
DataTableComponent,
|
DataTableComponent,
|
||||||
TimeAgoPipe,
|
|
||||||
NodeNameTooltipPipe,
|
|
||||||
NodeFavoriteDirective,
|
NodeFavoriteDirective,
|
||||||
DocumentListComponent,
|
DocumentListComponent,
|
||||||
LibrariesComponent,
|
LibrariesComponent,
|
||||||
|
@@ -27,8 +27,6 @@ import { TestBed, ComponentFixture } from '@angular/core/testing';
|
|||||||
import { NO_ERRORS_SCHEMA } from '@angular/core';
|
import { NO_ERRORS_SCHEMA } from '@angular/core';
|
||||||
import {
|
import {
|
||||||
AlfrescoApiService,
|
AlfrescoApiService,
|
||||||
TimeAgoPipe,
|
|
||||||
NodeNameTooltipPipe,
|
|
||||||
NodeFavoriteDirective,
|
NodeFavoriteDirective,
|
||||||
DataTableComponent,
|
DataTableComponent,
|
||||||
AppConfigPipe
|
AppConfigPipe
|
||||||
@@ -57,8 +55,6 @@ describe('RecentFilesComponent', () => {
|
|||||||
imports: [AppTestingModule],
|
imports: [AppTestingModule],
|
||||||
declarations: [
|
declarations: [
|
||||||
DataTableComponent,
|
DataTableComponent,
|
||||||
TimeAgoPipe,
|
|
||||||
NodeNameTooltipPipe,
|
|
||||||
NodeFavoriteDirective,
|
NodeFavoriteDirective,
|
||||||
DocumentListComponent,
|
DocumentListComponent,
|
||||||
RecentFilesComponent,
|
RecentFilesComponent,
|
||||||
|
@@ -27,8 +27,6 @@ import { TestBed, ComponentFixture } from '@angular/core/testing';
|
|||||||
import { NO_ERRORS_SCHEMA } from '@angular/core';
|
import { NO_ERRORS_SCHEMA } from '@angular/core';
|
||||||
import {
|
import {
|
||||||
AlfrescoApiService,
|
AlfrescoApiService,
|
||||||
TimeAgoPipe,
|
|
||||||
NodeNameTooltipPipe,
|
|
||||||
NodeFavoriteDirective,
|
NodeFavoriteDirective,
|
||||||
DataTableComponent,
|
DataTableComponent,
|
||||||
AppConfigPipe
|
AppConfigPipe
|
||||||
@@ -57,8 +55,6 @@ describe('SharedFilesComponent', () => {
|
|||||||
imports: [AppTestingModule],
|
imports: [AppTestingModule],
|
||||||
declarations: [
|
declarations: [
|
||||||
DataTableComponent,
|
DataTableComponent,
|
||||||
TimeAgoPipe,
|
|
||||||
NodeNameTooltipPipe,
|
|
||||||
NodeFavoriteDirective,
|
NodeFavoriteDirective,
|
||||||
DocumentListComponent,
|
DocumentListComponent,
|
||||||
SharedFilesComponent,
|
SharedFilesComponent,
|
||||||
|
@@ -26,8 +26,6 @@ import { NO_ERRORS_SCHEMA } from '@angular/core';
|
|||||||
import { TestBed, ComponentFixture } from '@angular/core/testing';
|
import { TestBed, ComponentFixture } from '@angular/core/testing';
|
||||||
import {
|
import {
|
||||||
AlfrescoApiService,
|
AlfrescoApiService,
|
||||||
TimeAgoPipe,
|
|
||||||
NodeNameTooltipPipe,
|
|
||||||
NodeFavoriteDirective,
|
NodeFavoriteDirective,
|
||||||
DataTableComponent,
|
DataTableComponent,
|
||||||
AppConfigPipe
|
AppConfigPipe
|
||||||
@@ -56,8 +54,6 @@ describe('TrashcanComponent', () => {
|
|||||||
imports: [AppTestingModule],
|
imports: [AppTestingModule],
|
||||||
declarations: [
|
declarations: [
|
||||||
DataTableComponent,
|
DataTableComponent,
|
||||||
TimeAgoPipe,
|
|
||||||
NodeNameTooltipPipe,
|
|
||||||
NodeFavoriteDirective,
|
NodeFavoriteDirective,
|
||||||
DocumentListComponent,
|
DocumentListComponent,
|
||||||
TrashcanComponent,
|
TrashcanComponent,
|
||||||
|
@@ -41,7 +41,8 @@ import {
|
|||||||
ContentService,
|
ContentService,
|
||||||
ThumbnailService,
|
ThumbnailService,
|
||||||
UploadService,
|
UploadService,
|
||||||
AlfrescoApiMock
|
AlfrescoApiMock,
|
||||||
|
PipeModule
|
||||||
} from '@alfresco/adf-core';
|
} from '@alfresco/adf-core';
|
||||||
import { HttpClientModule } from '@angular/common/http';
|
import { HttpClientModule } from '@angular/common/http';
|
||||||
import { TranslateServiceMock } from './translation.service';
|
import { TranslateServiceMock } from './translation.service';
|
||||||
@@ -63,10 +64,11 @@ import { MaterialModule } from '../material.module';
|
|||||||
RouterTestingModule,
|
RouterTestingModule,
|
||||||
MaterialModule,
|
MaterialModule,
|
||||||
StoreModule.forRoot({ app: appReducer }, { initialState: INITIAL_STATE }),
|
StoreModule.forRoot({ app: appReducer }, { initialState: INITIAL_STATE }),
|
||||||
EffectsModule.forRoot([])
|
EffectsModule.forRoot([]),
|
||||||
|
PipeModule
|
||||||
],
|
],
|
||||||
declarations: [TranslatePipeMock],
|
declarations: [TranslatePipeMock],
|
||||||
exports: [TranslatePipeMock, RouterTestingModule, MaterialModule],
|
exports: [TranslatePipeMock, RouterTestingModule, MaterialModule, PipeModule],
|
||||||
providers: [
|
providers: [
|
||||||
{ provide: AlfrescoApiService, useClass: AlfrescoApiMock },
|
{ provide: AlfrescoApiService, useClass: AlfrescoApiMock },
|
||||||
{ provide: TranslationService, useClass: TranslationMock },
|
{ provide: TranslationService, useClass: TranslationMock },
|
||||||
|
Reference in New Issue
Block a user