mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-13 12:20:45 +00:00
test: tighten respawn plan assertion
This commit is contained in:
@@ -13,7 +13,7 @@ import {
|
||||
type CliRespawnPlan = NonNullable<ReturnType<typeof buildCliRespawnPlan>>;
|
||||
|
||||
function expectCliRespawnPlan(plan: ReturnType<typeof buildCliRespawnPlan>): CliRespawnPlan {
|
||||
expect(plan).toEqual(expect.any(Object));
|
||||
expect(plan).not.toBeNull();
|
||||
if (plan === null) {
|
||||
throw new Error("Expected CLI respawn plan");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user