Skip to content

Commit

Permalink
fix build and test
Browse files Browse the repository at this point in the history
  • Loading branch information
griest024 committed May 14, 2024
1 parent d19e64a commit a159a1b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions apps/demo/src/app/cart/components/cart/cart.component.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ describe('Cart', () => {

fixture = TestBed.createComponent(WrapperComponent);
wrapper = fixture.componentInstance;
daffCartFacade.items$ = new BehaviorSubject(cart.items);
daffCartFacade.isCartEmpty$ = new BehaviorSubject(true);
daffCartFacade.cart$.next(cart);
daffCartFacade.isCartEmpty$.next(true);
wrapper.cartValue = cart;
component = fixture.debugElement.query(By.css('demo-cart')).componentInstance;

Expand Down
4 changes: 2 additions & 2 deletions apps/demo/src/app/cart/components/cart/cart.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export class CartComponent implements OnInit {
) {}

ngOnInit(): void {
this.itemCount$ = this.facade.items$.pipe(
map(items => items.length),
this.itemCount$ = this.facade.cart$.pipe(
map((cart) => cart?.items.length),
);
this.isCartEmpty$ = this.facade.isCartEmpty$;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class DaffCartPaymentProcessorEffects<
@Inject(DAFF_PAYMENT_PROCESSOR_COLLECTION) private processors: DaffPaymentProcessorCollection,
@Inject(DAFF_CART_ERROR_MATCHER) private errorMatcher: ErrorTransformer,
@Inject(DAFF_PAYMENT_ERROR_MATCHER) private paymentErrorMatcher: ErrorTransformer,
@Inject(DaffCartPaymentDriver) private driver: DaffCartPaymentServiceInterface<T, V, R>,
@Inject(DaffCartPaymentDriver) private driver: DaffCartPaymentServiceInterface<V>,
private storage: DaffCartStorageService,
private injector: Injector,
) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ import { DAFF_CART_ERROR_MATCHER } from '../injection-tokens/public_api';
@Injectable()
export class DaffCartShippingInformationEffects<T extends DaffCart = DaffCart> {
constructor(
private actions$: Actions<DaffCartShippingInformationActions<T['shipping_information']>>,
private actions$: Actions<DaffCartShippingInformationActions<T>>,
@Inject(DAFF_CART_ERROR_MATCHER) private errorMatcher: ErrorTransformer,
@Inject(DaffCartShippingInformationDriver) private driver: DaffCartShippingInformationServiceInterface<T['shipping_information']>,
@Inject(DaffCartShippingInformationDriver) private driver: DaffCartShippingInformationServiceInterface<T>,
private storage: DaffCartStorageService,
) {}

Expand Down
1 change: 0 additions & 1 deletion libs/cart/state/src/public_api.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export * from './actions/public_api';
export * from './effects/public_api';
export * from './cart-retrieval/public_api';
export * from './selectors/public_api';
export * from './reducers/public_api';
Expand Down

0 comments on commit a159a1b

Please sign in to comment.