feat: 完成 DOCX 通用结构映射与严格收口
This commit is contained in:
@@ -185,6 +185,12 @@ describe("DOCX 共享导出服务", () => {
|
||||
|
||||
expect(result.docx).toEqual(new Uint8Array([1, 2, 3]));
|
||||
expect(result.fileName).toBe("报告_.docx");
|
||||
expect(convert).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
semanticDocument: prepared.document.semanticDocument
|
||||
}),
|
||||
expect.any(AbortSignal)
|
||||
);
|
||||
expect(result.diagnostics).toEqual({
|
||||
warnings: [],
|
||||
echartsErrors: [],
|
||||
|
||||
Reference in New Issue
Block a user