graycoreio/daffodil

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

Summary

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

import { DaffNavigationFacade } from '@daffodil/navigation/state';

import { MockDaffNavigationFacade } from './mock-navigation.facade';

/**
 * The DaffNavigationStateTestingModule provides a mock for the DaffNavigationFacade. This makes testing much simpler
 * by removing any interaction with the ngrx store.
 */
@NgModule({
  imports: [
    CommonModule,
  ],
  providers: [
    { provide: DaffNavigationFacade, useExisting: MockDaffNavigationFacade },
  ],
})
export class DaffNavigationStateTestingModule {}