fix: 簡化 MinerU 和 PDFMathTranslate 的程式碼,改善錯誤處理與參數傳遞
This commit is contained in:
parent
566ee48bfe
commit
89c121bdf9
4 changed files with 36 additions and 26 deletions
|
|
@ -203,9 +203,9 @@ describe("MinerU converter .tar output (no compression)", () => {
|
|||
};
|
||||
|
||||
const targetPath = join(testDir, "output.tar");
|
||||
expect(convert("test.pdf", "pdf", "md-t", targetPath, undefined, mockExecFile)).rejects.toMatch(
|
||||
/mineru error/,
|
||||
);
|
||||
await expect(
|
||||
convert("test.pdf", "pdf", "md-t", targetPath, undefined, mockExecFile),
|
||||
).rejects.toThrow(/mineru error/);
|
||||
});
|
||||
|
||||
test("should use correct tar arguments without compression", async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue