Browse Source

fix(test): use v2 promptAsync call shape in initiator marker test

Michael Henke 2 weeks ago
parent
commit
4ace8ede7d
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/hooks/foreground-fallback/index.test.ts

+ 2 - 2
src/hooks/foreground-fallback/index.test.ts

@@ -291,9 +291,9 @@ describe('ForegroundFallbackManager session.error', () => {
     });
 
     const call = mocks.promptAsync.mock.calls[0] as [
-      { body: { parts: unknown[] } },
+      { parts: unknown[] },
     ];
-    expect(call[0].body.parts.some(isInternalInitiatorPart)).toBe(true);
+    expect(call[0].parts.some(isInternalInitiatorPart)).toBe(true);
   });
 
   test('skips malformed messages without info when locating the last user message', async () => {