mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-21 04:44:47 +00:00
test: tighten cli assertion checks
This commit is contained in:
@@ -44,7 +44,7 @@ describe("buildProgram", () => {
|
||||
const error = await promise.catch((err) => err);
|
||||
|
||||
expect(error).toBeInstanceOf(CommanderError);
|
||||
expect(error).toMatchObject({ exitCode });
|
||||
expect((error as CommanderError).exitCode).toBe(exitCode);
|
||||
return error as CommanderError;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user