style(frontend): prettier baseline format (no logic change)
This commit is contained in:
@@ -41,8 +41,12 @@ it("短文无标记 → 单节,chapterText 即全文", () => {
|
||||
|
||||
it("卷不感知:只按章切,卷题行留在正文里", () => {
|
||||
const t =
|
||||
"第一卷 天云世界\n第一章 铜镜\n" + pad(500) + "\n第二章 修炼\n" + pad(500) +
|
||||
"\n\n\n第二卷 仙界\n第三章 飞升\n" + pad(300);
|
||||
"第一卷 天云世界\n第一章 铜镜\n" +
|
||||
pad(500) +
|
||||
"\n第二章 修炼\n" +
|
||||
pad(500) +
|
||||
"\n\n\n第二卷 仙界\n第三章 飞升\n" +
|
||||
pad(300);
|
||||
const chs = splitChapters(t);
|
||||
expect(chs.map((c) => c.title)).toEqual(["第一章 铜镜", "第二章 修炼", "第三章 飞升"]);
|
||||
expect(chs[0].start).toBe(t.indexOf("第一章"));
|
||||
|
||||
Reference in New Issue
Block a user