mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-27 05:07:50 +00:00
test: guard cli null helpers
This commit is contained in:
@@ -123,8 +123,6 @@ function mockLocalPairingFallback(message?: string) {
|
||||
}
|
||||
|
||||
function requireRecord(value: unknown, label: string): Record<string, unknown> {
|
||||
expect(typeof value).toBe("object");
|
||||
expect(value).not.toBeNull();
|
||||
if (typeof value !== "object" || value === null) {
|
||||
throw new Error(`${label} was not an object`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user