mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-13 01:40:44 +00:00
test: tighten config footprint record assertion
This commit is contained in:
@@ -53,8 +53,7 @@ function collectSchemaPaths(schema: unknown, prefix = ""): string[] {
|
||||
}
|
||||
|
||||
function asRecord(value: unknown): Record<string, unknown> {
|
||||
expect(value).not.toBeNull();
|
||||
expect(typeof value).toBe("object");
|
||||
expect(value).toEqual(expect.any(Object));
|
||||
expect(Array.isArray(value)).toBe(false);
|
||||
return value as Record<string, unknown>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user