All files / src/app/shared/components/basket/basket-validation-products basket-validation-products.component.ts

100% Statements 2/2
100% Branches 0/0
100% Functions 0/0
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 192x                             2x      
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
 
import { PriceItem } from 'ish-core/models/price-item/price-item.model';
 
/**
 * Displays the products that are not valid any more after basket validation and that has been removed from basket
 *
 * @example
 * <ish-basket-validation-products [items]="removedItems"></ish-basket-validation-products>
 */
@Component({
  selector: 'ish-basket-validation-products',
  templateUrl: './basket-validation-products.component.html',
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class BasketValidationProductsComponent {
  @Input({ required: true }) items: { message: string; productSKU: string; price: PriceItem }[];
}