All files / src/lib/docs security-docs.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 21 22 23 24 25                        7x             7x     2x    
import {
  docsInSection,
  findDoc,
  REPO_URL,
  type PublishedDoc,
} from "@/lib/docs/published-docs";
 
export type SecurityDoc = PublishedDoc;
export { REPO_URL };
 
/** The one-page version of the report for health insurers, served by the
 *  hub itself (docs/klarbefund/report-for-health-insurers.html). */
export const INSURER_REPORT_PAGE = `${
  process.env.NEXT_PUBLIC_STATIC_EXPORT === "true"
    ? "/MinimumViableHealthDataspacev2"
    : ""
}/published-docs/klarbefund-insurer-report.html`;
 
/** The security and data-protection reports, in index order. */
export const securityDocs: SecurityDoc[] = docsInSection("security");
 
export function findSecurityDoc(slug: string): SecurityDoc | undefined {
  return findDoc("security", slug);
}