libs/search/driver/testing/src/drivers/search-driver.module.ts
import { CommonModule } from '@angular/common';
import {
NgModule,
ModuleWithProviders,
} from '@angular/core';
import { provideDaffSearchDriver } from '@daffodil/search/driver';
import { DaffTestingSearchDriver } from './search.service';
/**
* Provides the {@link DaffTestingSearchDriver} as the {@link DaffSearchDriver}.
*/
@NgModule({
imports: [
CommonModule,
],
})
export class DaffSearchTestingDriverModule {
static forRoot(): ModuleWithProviders<DaffSearchTestingDriverModule> {
return {
ngModule: DaffSearchTestingDriverModule,
providers: [
provideDaffSearchDriver(DaffTestingSearchDriver),
],
};
}
}