mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 23:58:25 +00:00
chore: Fix types in tests 31/N.
This commit is contained in:
@@ -19,8 +19,11 @@ describe("ensureSkillsWatcher", () => {
|
||||
mod.ensureSkillsWatcher({ workspaceDir: "/tmp/workspace" });
|
||||
|
||||
expect(watchMock).toHaveBeenCalledTimes(1);
|
||||
const targets = watchMock.mock.calls[0]?.[0] as string[];
|
||||
const opts = watchMock.mock.calls[0]?.[1] as { ignored?: unknown };
|
||||
const firstCall = (
|
||||
watchMock.mock.calls as unknown as Array<[string[], { ignored?: unknown }]>
|
||||
)[0];
|
||||
const targets = firstCall?.[0] ?? [];
|
||||
const opts = firstCall?.[1] ?? {};
|
||||
|
||||
expect(opts.ignored).toBe(mod.DEFAULT_SKILLS_WATCH_IGNORED);
|
||||
const posix = (p: string) => p.replaceAll("\\", "/");
|
||||
|
||||
Reference in New Issue
Block a user