cf830a56 days ago13 lines · 405 B| 1 | import { describe, expect, it } from "bun:test"; |
| 2 | |
| 3 | import { titleFromBranch } |
| 4 | |
| 5 | describe("titleFromBranch", () |
| 6 | it("turns the branch's last segment into a sentence", |
| 7 | expect(titleFromBranch("alice:feat/add-rate_limiter |
| 8 | "Add rate limiter", |
| 9 | ); |
| 10 | expect(titleFromBranch("fix-login |
| 11 | expect(titleFromBranch("")) |
| 12 | }); |
| 13 | }); |