How to use the @daffodil/driver.DaffDriverConfigService function in @daffodil/driver

To help you get started, we’ve selected a few @daffodil/driver examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github graycoreio / daffodil / libs / driver / shopify / src / cart / services / cart.service.spec.ts View on Github external
beforeEach(() => {
    daffodilConfigFactory = new DaffDriverConfigFactory();
    daffodilConfigService = new DaffDriverConfigService(
      daffodilConfigFactory.create()
    );

    TestBed.configureTestingModule({
      imports: [
        HttpClientTestingModule,
        DaffCoreTestingModule
      ],
      providers: [
        DaffShopifyCartService,
        { provide: DaffDriverConfigService, useValue: daffodilConfigService }
      ]
    });
    
    httpMock = TestBed.get(HttpTestingController);
    cartService = TestBed.get(DaffShopifyCartService);

@daffodil/driver

A consistent, sane api driver that works with different ecommerce systems.

MIT
Latest version published 5 days ago

Package Health Score

85 / 100
Full package analysis

Similar packages