test: tighten qa channel context assertion

This commit is contained in:
Peter Steinberger
2026-05-09 03:06:42 +01:00
parent 31ffaf0544
commit a6dee24c3f

View File

@@ -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");
}