test: tighten qqbot symlink assertion · openclaw/openclaw@8111ae4
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
File tree
extensions/qqbot/src/engine/utils
| Original file line number | Diff line number | Diff line change |
|---|
@@ -103,7 +103,7 @@ describe("qqbot file-utils downloadFile", () => {
|
103 | 103 | await fs.promises.symlink(targetPath, linkPath); |
104 | 104 | |
105 | 105 | expect(checkFileSize(linkPath).ok).toBe(false); |
106 | | -await expect(readFileAsync(linkPath)).rejects.toThrow(); |
| 106 | +await expect(readFileAsync(linkPath)).rejects.toThrow(/symbolic link|symlink|regular file/i); |
107 | 107 | await expect(fileExistsAsync(linkPath)).resolves.toBe(false); |
108 | 108 | }); |
109 | 109 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。