All files / libs/plan-agreements/shared/src/lib/business-rules/agreements/is-template-refreshable is-template-refreshable.ts

100% Statements 5/5
100% Branches 2/2
100% Functions 1/1
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 61x 1x 1x 1x 1x  
import { PlanAgreementStatus, type PlanAgreement } from '@amalia/plan-agreements/types';
 
export const isPlanAgreementTemplateRefreshable = (
  planAgreement: Pick<PlanAgreement, 'externalGoogleDocId' | 'status'>,
): boolean => PlanAgreementStatus.DRAFT === planAgreement.status && !!planAgreement.externalGoogleDocId;