graycoreio/daffodil

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

Summary

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

import { provideDaffReviewsDriver } from '@daffodil/reviews/driver';

import { DaffReviewsTestingService } from './reviews.service';

@NgModule({
  imports: [
    CommonModule,
  ],
})
export class DaffReviewsTestingDriverModule {
  static forRoot(): ModuleWithProviders<DaffReviewsTestingDriverModule> {
    return {
      ngModule: DaffReviewsTestingDriverModule,
      providers: [
        provideDaffReviewsDriver(DaffReviewsTestingService),
      ],
    };
  }
}