All files / src/app/core/store/shopping/promotions promotions.actions.ts

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

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 14120x     120x   120x   120x   120x        
import { createAction } from '@ngrx/store';
 
import { Promotion } from 'ish-core/models/promotion/promotion.model';
import { httpError, payload } from 'ish-core/utils/ngrx-creators';
 
export const loadPromotion = createAction('[Promotions] Load Promotion', payload<{ promoId: string }>());
 
export const loadPromotionFail = createAction('[Promotions API] Load Promotion Fail', httpError<{ promoId: string }>());
 
export const loadPromotionSuccess = createAction(
  '[Promotions API] Load Promotion Success',
  payload<{ promotion: Promotion }>()
);