@@ -839,7 +839,7 @@ describe("summarizeConversation", () => {
839839
840840 // Verify that createMessage was called with the simple system prompt
841841 expect ( mockApiHandler . createMessage ) . toHaveBeenCalledWith (
842- "Summarize the conversation so far, as described in the prompt instructions ." ,
842+ "You are a helpful AI assistant tasked with summarizing conversations ." ,
843843 expect . any ( Array ) ,
844844 )
845845
@@ -1542,9 +1542,7 @@ describe("summarizeConversation with custom settings", () => {
15421542 // Verify the default prompt was used (simple system prompt)
15431543 let createMessageCalls = ( mockMainApiHandler . createMessage as Mock ) . mock . calls
15441544 expect ( createMessageCalls . length ) . toBe ( 1 )
1545- expect ( createMessageCalls [ 0 ] [ 0 ] ) . toBe (
1546- "Summarize the conversation so far, as described in the prompt instructions." ,
1547- )
1545+ expect ( createMessageCalls [ 0 ] [ 0 ] ) . toBe ( "You are a helpful AI assistant tasked with summarizing conversations." )
15481546
15491547 // Reset mock and test with undefined
15501548 vi . clearAllMocks ( )
@@ -1561,9 +1559,7 @@ describe("summarizeConversation with custom settings", () => {
15611559 // Verify the default prompt was used again (simple system prompt)
15621560 createMessageCalls = ( mockMainApiHandler . createMessage as Mock ) . mock . calls
15631561 expect ( createMessageCalls . length ) . toBe ( 1 )
1564- expect ( createMessageCalls [ 0 ] [ 0 ] ) . toBe (
1565- "Summarize the conversation so far, as described in the prompt instructions." ,
1566- )
1562+ expect ( createMessageCalls [ 0 ] [ 0 ] ) . toBe ( "You are a helpful AI assistant tasked with summarizing conversations." )
15671563 } )
15681564
15691565 /**
0 commit comments