test: dedupe memory watcher mock reads · openclaw/openclaw@b21630d
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
File tree
extensions/memory-core/src/memory
| Original file line number | Diff line number | Diff line change |
|---|
@@ -161,7 +161,7 @@ describe("memory watcher config", () => {
|
161 | 161 | await expectWatcherManager(cfg); |
162 | 162 | |
163 | 163 | expect(watchMock).toHaveBeenCalledTimes(1); |
164 | | -const [watchedPaths, options] = watchMock.mock.calls.at(0) as unknown as [ |
| 164 | +const [watchedPaths, options] = watchMock.mock.calls[0] as unknown as [ |
165 | 165 | string[], |
166 | 166 | Record<string, unknown>, |
167 | 167 | ]; |
@@ -217,7 +217,7 @@ describe("memory watcher config", () => {
|
217 | 217 | await expectWatcherManager(cfg); |
218 | 218 | |
219 | 219 | expect(watchMock).toHaveBeenCalledTimes(1); |
220 | | -const [watchedPaths, options] = watchMock.mock.calls.at(0) as unknown as [ |
| 220 | +const [watchedPaths, options] = watchMock.mock.calls[0] as unknown as [ |
221 | 221 | string[], |
222 | 222 | Record<string, unknown>, |
223 | 223 | ]; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。