Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';
import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api';
import { CartTestingService } from '../testing/services/cart.testing.service';
import { CartFactory } from '@daffodil/core';
import { CartService } from '../services/cart.service';
import { DaffodilConfigService } from '../../config/daffodil-config.service';
@NgModule({
imports: [
HttpClientModule,
HttpClientInMemoryWebApiModule.forFeature(CartTestingService, {
delay: 500
})
],
providers: [
CartFactory,
CartService,
CartTestingService
]
})
export class CartTestingModule { }
import { NgModule } from '@angular/core';
import { HttpClientModule } from '@angular/common/http';
import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api';
import { ProductFactory } from '@daffodil/core';
import { ProductService } from '../services/product.service';
import { ProductTestingService } from '../testing/services/product.testing.service';
@NgModule({
imports: [
HttpClientModule,
HttpClientInMemoryWebApiModule.forFeature(ProductTestingService, {
delay: 500
})
],
providers: [
ProductFactory,
ProductService,
ProductTestingService
]
})
export class ProductTestingModule { }