test: tighten subagent query assertions

This commit is contained in:
Peter Steinberger
2026-05-09 16:38:54 +01:00
parent 06be0cf2d5
commit 216f25977d

View File

@@ -526,12 +526,12 @@ describe("subagent registry query regressions", () => {
}),
]);
expect(resolveRequesterForChildSessionFromRuns(runs, childOneSessionKey)).toMatchObject({
requesterSessionKey: parentSessionKey,
});
expect(resolveRequesterForChildSessionFromRuns(runs, childTwoSessionKey)).toMatchObject({
requesterSessionKey: parentSessionKey,
});
expect(
resolveRequesterForChildSessionFromRuns(runs, childOneSessionKey)?.requesterSessionKey,
).toBe(parentSessionKey);
expect(
resolveRequesterForChildSessionFromRuns(runs, childTwoSessionKey)?.requesterSessionKey,
).toBe(parentSessionKey);
expect(shouldIgnorePostCompletionAnnounceForSessionFromRuns(runs, parentSessionKey)).toBe(
false,
);
@@ -570,9 +570,9 @@ describe("subagent registry query regressions", () => {
}),
);
expect(resolveRequesterForChildSessionFromRuns(runs, childThreeSessionKey)).toMatchObject({
requesterSessionKey: parentSessionKey,
});
expect(
resolveRequesterForChildSessionFromRuns(runs, childThreeSessionKey)?.requesterSessionKey,
).toBe(parentSessionKey);
expect(shouldIgnorePostCompletionAnnounceForSessionFromRuns(runs, parentSessionKey)).toBe(
false,
);