graycoreio/daffodil

View on GitHub
libs/newsletter/driver/testing/src/drivers/testing.module.ts

Summary

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

import { provideDaffNewsletterDriver } from '@daffodil/newsletter/driver';

import { DaffTestingNewsletterService } from './newsletter.service';

@NgModule()
export class DaffNewsletterTestingDriverModule {
  static forRoot(): ModuleWithProviders<DaffNewsletterTestingDriverModule> {
    return {
      ngModule: DaffNewsletterTestingDriverModule,
      providers: [
        provideDaffNewsletterDriver(DaffTestingNewsletterService),
      ],
    };
  }
}