graycoreio/daffodil

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

Summary

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

import { provideDaffPaypalExpressDriver } from '@daffodil/paypal/driver';

import { DaffTestingPaypalService } from './paypal.service';

@NgModule({
  imports: [
    CommonModule,
  ],
})
export class DaffPaypalTestingDriverModule {
  static forRoot(): ModuleWithProviders<DaffPaypalTestingDriverModule> {
    return {
      ngModule: DaffPaypalTestingDriverModule,
      providers: [
        provideDaffPaypalExpressDriver(DaffTestingPaypalService),
      ],
    };
  }
}