All files / src/app/shared/components/basket/basket-error-message basket-error-message.component.html

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

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 186x                                  
<ng-container *ngIf="error as basketError">
  <ng-container *ngIf="basketError.errors as errors">
    <div *ngFor="let error of errors" [class]="cssClass" data-testing-id="basket-errors">
      <strong>{{ error.message }}</strong>
      <ng-container *ngIf="error.causes as causes">
        <p *ngFor="let cause of causes" role="alert">
          <span> {{ cause.message }}</span>
          <span *ngIf="cause.parameters?.sku" class="product-id"
            ><br />
            <span class="product-id-label">{{ 'product.itemNumber.label' | translate }}</span>
            <span itemprop="sku">{{ cause.parameters.sku }}</span>
          </span>
        </p>
      </ng-container>
    </div>
  </ng-container>
</ng-container>