mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 07:00:43 +00:00
test: clarify channel config schema issue assertions
This commit is contained in:
@@ -7,7 +7,7 @@ function expectSchemaIssue(
|
||||
) {
|
||||
expect(result.success).toBe(false);
|
||||
if (!result.success) {
|
||||
expect(result.error.issues.some((issue) => issue.path.join(".") === issuePath)).toBe(true);
|
||||
expect(result.error.issues.map((issue) => issue.path.join("."))).toContain(issuePath);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user