mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 18:30:42 +00:00
test: tighten qa channel context assertion
This commit is contained in:
@@ -22,7 +22,7 @@ function installQaChannelTestRegistry() {
|
||||
}
|
||||
|
||||
function expectDispatchedContext(ctx: Record<string, unknown> | null): Record<string, unknown> {
|
||||
expect(ctx).toEqual(expect.any(Object));
|
||||
expect(ctx).not.toBeNull();
|
||||
if (ctx === null) {
|
||||
throw new Error("Expected dispatched context");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user