| 1 | import { describe, expect, it } from "bun:test"; |
| 2 | |
| 3 | import { plain } |
| 4 | |
| 5 | describe("plain", () |
| 6 | it("keeps the words of markdown and drops its syntax", |
| 7 | expect( |
| 8 | plain( |
| 9 | "_Opened by [@mariusdill](https://github.com/mariusdill) on GitHub._\n\n## What's Changed\n* fix(web): **bold** `code`", |
| 10 | ), |
| 11 | ).toBe( |
| 12 | "Opened by @mariusdill on GitHub. What's Changed fix(web): bold code", |
| 13 | ); |
| 14 | }); |
| 15 | |
| 16 | it("drops a heading marker", |
| 17 | expect(plain("# hello 123 |
| 18 | }); |
| 19 | }); |