diff --git a/src/agents/subagent-registry-queries.test.ts b/src/agents/subagent-registry-queries.test.ts index 41d465a3d82..f4d360a88e7 100644 --- a/src/agents/subagent-registry-queries.test.ts +++ b/src/agents/subagent-registry-queries.test.ts @@ -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, );