mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-22 12:34:07 +00:00
test: tighten assertions and harness coverage
This commit is contained in:
@@ -87,8 +87,7 @@ function expectNoAccountFieldInPassedOptions() {
|
||||
const passedOpts = (
|
||||
messageCommandMock.mock.calls as unknown as Array<[Record<string, unknown>]>
|
||||
)?.[0]?.[0];
|
||||
expect(passedOpts).toBeTruthy();
|
||||
if (!passedOpts) {
|
||||
if (passedOpts === undefined) {
|
||||
throw new Error("expected message command call");
|
||||
}
|
||||
expect(passedOpts).not.toHaveProperty("account");
|
||||
|
||||
Reference in New Issue
Block a user