diff --git a/packages/shared/__tests__/fixture/brief.ts b/packages/shared/__tests__/fixture/brief.ts new file mode 100644 index 00000000000..5d65da91355 --- /dev/null +++ b/packages/shared/__tests__/fixture/brief.ts @@ -0,0 +1,22 @@ +/** + * A brief's `contentHtml` as the API renders it: markdown-it over the TLDR and + * one `## title` plus a bullet list per section, each bullet closing with a + * link to the post it came from, or to a feed of them when there are several. + */ +export const briefContentHtml = `

The U.S. government has accused Chinese AI firms of industrial-scale model distillation, while Shopify has acquired Tailwind CSS to ensure its long-term stability.

+

Must know

+ +

Good to know

+`; + +/** The same brief when the briefing service sent no Must know section. */ +export const briefContentHtmlWithoutMustKnow = briefContentHtml.replace( + /

Must know<\/h2>\n