All files / react-app/src/features/forms faqLinks.ts

100% Statements 3/3
50% Branches 1/2
100% Functions 1/1
100% Lines 3/3

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 19 20 2172x 20x                                 20x    
export const getFAQLinkForAttachments = (eventName: string) => {
  const faqLinks = new Map<string, string>([
    ["new-medicaid-submission", "/faq/medicaid-spa-attachments"],
    ["new-chip-submission", "/faq/chip-spa-attachments"],
    ["respond-to-rai-medicaid", "/faq/medicaid-spa-rai-attachments"],
    ["respond-to-rai-waiver", "/faq/waiverb-rai-attachments"],
    ["respond-to-rai-chip", "/faq/chip-spa-rai-attachments"],
    ["app-k", "/faq/appk-attachments"],
    ["capitated-amendment", "/faq/waiverb-attachments"],
    ["capitated-initial", "/faq/waiverb-attachments"],
    ["capitated-renewal", "/faq/waiverb-attachments"],
    ["contracting-amendment", "/faq/waiverb-attachments"],
    ["contracting-initial", "/faq/waiverb-attachments"],
    ["contracting-renewal", "/faq/waiverb-attachments"],
    ["temporary-extension-1915(b)", "/faq/temporary-extensions-b-attachments"],
    ["temporary-extension-1915(c)", "/faq/temporary-extensions-c-attachments"],
  ]);
 
  return faqLinks.get(eventName) ?? "/faq";
};