graycoreio/daffodil

View on GitHub
libs/reviews/state/testing/src/state-testing.module.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { NgModule } from '@angular/core';

import { MockDaffCollectionFacade } from '@daffodil/core/state/testing';
import {
  DaffProductPageReviewsCollectionFacade,
  DaffProductPageReviewsFacade,
  DaffProductReviewsFacade,
} from '@daffodil/reviews/state';

import { MockDaffProductPageReviewsFacade } from './mock-product-page-reviews-facade';
import { MockDaffProductReviewsFacade } from './mock-product-reviews-facade';


@NgModule({
  providers: [
    { provide: DaffProductPageReviewsFacade, useExisting: MockDaffProductPageReviewsFacade },
    { provide: DaffProductReviewsFacade, useExisting: MockDaffProductReviewsFacade },
    { provide: DaffProductPageReviewsCollectionFacade, useExisting: MockDaffCollectionFacade },
  ],
})
export class DaffReviewsStateTestingModule {}