File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -344,7 +344,7 @@ async function* promptAiSdkStreamMock(
344344 await params . onCostCalculated ( 0 )
345345 }
346346
347- return `mock-message-${ Math . random ( ) . toString ( 36 ) . slice ( 2 , 10 ) } `
347+ return promptSuccess ( `mock-message-${ Math . random ( ) . toString ( 36 ) . slice ( 2 , 10 ) } ` )
348348}
349349
350350async function promptAiSdkMock (
@@ -393,7 +393,7 @@ export function setupE2eMocks(): void {
393393 async ( { fields } ) =>
394394 Object . fromEntries (
395395 fields . map ( ( field ) => [ field , MOCK_USER [ field ] ] ) ,
396- ) as Awaited < ReturnType < typeof databaseModule . getUserInfoFromApiKey > > ,
396+ ) as unknown as Awaited < ReturnType < typeof databaseModule . getUserInfoFromApiKey > > ,
397397 )
398398 spyOn ( databaseModule , 'fetchAgentFromDatabase' ) . mockImplementation (
399399 async ( { parsedAgentId } ) => buildMockAgentTemplate ( parsedAgentId ) ,
You can’t perform that action at this time.
0 commit comments