fix(test): use correct validation result type in agentId test
This commit is contained in:
parent
c96577ec21
commit
6a75ce9dac
@ -48,8 +48,9 @@ describe("hooks.mappings agentId validation", () => {
|
|||||||
});
|
});
|
||||||
expect(res.ok).toBe(false);
|
expect(res.ok).toBe(false);
|
||||||
if (!res.ok) {
|
if (!res.ok) {
|
||||||
expect(res.error).toContain("nonexistent-agent");
|
const messages = res.issues.map((i) => i.message).join(" ");
|
||||||
expect(res.error).toContain("not in agents.list");
|
expect(messages).toContain("nonexistent-agent");
|
||||||
|
expect(messages).toContain("not in agents.list");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user