Skip to content

Commit

Permalink
[ACA-2228] Add PipeModule to AppTestingModule (#993)
Browse files Browse the repository at this point in the history
- fixes unit tests after upgrade to 3.1.0-beta4
  • Loading branch information
suzanadirla authored and DenysVuika committed Mar 5, 2019
1 parent 7ba8864 commit 8b0c186
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ import { UserPreferencesService } from '@alfresco/adf-core';
import { Router } from '@angular/router';
import {
AlfrescoApiService,
TimeAgoPipe,
NodeNameTooltipPipe,
NodeFavoriteDirective,
DataTableComponent,
AppConfigPipe
Expand Down Expand Up @@ -71,8 +69,6 @@ describe('FavoriteLibrariesComponent', () => {
],
declarations: [
DataTableComponent,
TimeAgoPipe,
NodeNameTooltipPipe,
NodeFavoriteDirective,
DocumentListComponent,
FavoriteLibrariesComponent,
Expand Down
4 changes: 0 additions & 4 deletions src/app/components/favorites/favorites.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ import { Router } from '@angular/router';
import { TestBed, ComponentFixture } from '@angular/core/testing';
import {
AlfrescoApiService,
TimeAgoPipe,
NodeNameTooltipPipe,
NodeFavoriteDirective,
DataTableComponent,
AppConfigPipe
Expand Down Expand Up @@ -75,8 +73,6 @@ describe('FavoritesComponent', () => {
imports: [AppTestingModule],
declarations: [
DataTableComponent,
TimeAgoPipe,
NodeNameTooltipPipe,
NodeFavoriteDirective,
DocumentListComponent,
FavoritesComponent,
Expand Down
6 changes: 0 additions & 6 deletions src/app/components/files/files.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ import {
import { NO_ERRORS_SCHEMA } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import {
TimeAgoPipe,
NodeNameTooltipPipe,
FileSizePipe,
NodeFavoriteDirective,
DataTableComponent,
UploadService,
Expand Down Expand Up @@ -62,11 +59,8 @@ describe('FilesComponent', () => {
declarations: [
FilesComponent,
DataTableComponent,
TimeAgoPipe,
NodeNameTooltipPipe,
NodeFavoriteDirective,
DocumentListComponent,
FileSizePipe,
AppConfigPipe
],
providers: [
Expand Down
4 changes: 0 additions & 4 deletions src/app/components/libraries/libraries.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ import { NO_ERRORS_SCHEMA } from '@angular/core';
import { Router } from '@angular/router';
import {
AlfrescoApiService,
TimeAgoPipe,
NodeNameTooltipPipe,
NodeFavoriteDirective,
DataTableComponent,
AppConfigPipe
Expand Down Expand Up @@ -61,8 +59,6 @@ describe('LibrariesComponent', () => {
imports: [AppTestingModule, EffectsModule.forRoot([LibraryEffects])],
declarations: [
DataTableComponent,
TimeAgoPipe,
NodeNameTooltipPipe,
NodeFavoriteDirective,
DocumentListComponent,
LibrariesComponent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ import { TestBed, ComponentFixture } from '@angular/core/testing';
import { NO_ERRORS_SCHEMA } from '@angular/core';
import {
AlfrescoApiService,
TimeAgoPipe,
NodeNameTooltipPipe,
NodeFavoriteDirective,
DataTableComponent,
AppConfigPipe
Expand Down Expand Up @@ -57,8 +55,6 @@ describe('RecentFilesComponent', () => {
imports: [AppTestingModule],
declarations: [
DataTableComponent,
TimeAgoPipe,
NodeNameTooltipPipe,
NodeFavoriteDirective,
DocumentListComponent,
RecentFilesComponent,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ import { TestBed, ComponentFixture } from '@angular/core/testing';
import { NO_ERRORS_SCHEMA } from '@angular/core';
import {
AlfrescoApiService,
TimeAgoPipe,
NodeNameTooltipPipe,
NodeFavoriteDirective,
DataTableComponent,
AppConfigPipe
Expand Down Expand Up @@ -57,8 +55,6 @@ describe('SharedFilesComponent', () => {
imports: [AppTestingModule],
declarations: [
DataTableComponent,
TimeAgoPipe,
NodeNameTooltipPipe,
NodeFavoriteDirective,
DocumentListComponent,
SharedFilesComponent,
Expand Down
4 changes: 0 additions & 4 deletions src/app/components/trashcan/trashcan.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ import { NO_ERRORS_SCHEMA } from '@angular/core';
import { TestBed, ComponentFixture } from '@angular/core/testing';
import {
AlfrescoApiService,
TimeAgoPipe,
NodeNameTooltipPipe,
NodeFavoriteDirective,
DataTableComponent,
AppConfigPipe
Expand Down Expand Up @@ -56,8 +54,6 @@ describe('TrashcanComponent', () => {
imports: [AppTestingModule],
declarations: [
DataTableComponent,
TimeAgoPipe,
NodeNameTooltipPipe,
NodeFavoriteDirective,
DocumentListComponent,
TrashcanComponent,
Expand Down
8 changes: 5 additions & 3 deletions src/app/testing/app-testing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ import {
ContentService,
ThumbnailService,
UploadService,
AlfrescoApiMock
AlfrescoApiMock,
PipeModule
} from '@alfresco/adf-core';
import { HttpClientModule } from '@angular/common/http';
import { TranslateServiceMock } from './translation.service';
Expand All @@ -63,10 +64,11 @@ import { MaterialModule } from '../material.module';
RouterTestingModule,
MaterialModule,
StoreModule.forRoot({ app: appReducer }, { initialState: INITIAL_STATE }),
EffectsModule.forRoot([])
EffectsModule.forRoot([]),
PipeModule
],
declarations: [TranslatePipeMock],
exports: [TranslatePipeMock, RouterTestingModule, MaterialModule],
exports: [TranslatePipeMock, RouterTestingModule, MaterialModule, PipeModule],
providers: [
{ provide: AlfrescoApiService, useClass: AlfrescoApiMock },
{ provide: TranslationService, useClass: TranslationMock },
Expand Down

0 comments on commit 8b0c186

Please sign in to comment.