Skip to content

Commit 223ef63

Browse files
committed
test: 适配 Word 导出全角题号
1 parent f1a74ba commit 223ef63

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎src/__tests__/unit/export-to-docx.test.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ describe("buildDocxParagraphs", () => {
157157
it("题号连续", () => {
158158
const paragraphs = buildDocxParagraphs(sampleQuestions, {});
159159
const allText = JSON.stringify(paragraphs);
160-
expect(allText).toContain("1. 下列哪个选项是正确的?");
161-
expect(allText).toContain("2. 1+1=____。");
162-
expect(allText).toContain("3. 简述勾股定理。");
160+
expect(allText).toContain("1.下列哪个选项是正确的?");
161+
expect(allText).toContain("2.1+1=____。");
162+
expect(allText).toContain("3.简述勾股定理。");
163163
});
164164

165165
it("答案部分开关:默认开启含参考答案", () => {

0 commit comments

Comments
 (0)