File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
src/Elastic.Documentation.Site/Assets/web-components/SearchOrAskAi/AskAi Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -7,13 +7,13 @@ jest.mock('uuid', () => ({
77 v4 : jest . fn ( ) ,
88} ) )
99
10- const mockUuidv4 = uuidv4 as jest . MockedFunction < typeof uuidv4 >
10+ const mockUuidv4 = uuidv4 as jest . MockedFunction < ( ) => string >
1111
1212describe ( 'chat.store' , ( ) => {
1313 beforeEach ( ( ) => {
1414 // Setup UUID mock to return unique IDs
1515 let counter = 0
16- mockUuidv4 . mockImplementation ( ( ) => `mock-uuid-${ ++ counter } ` as string )
16+ mockUuidv4 . mockImplementation ( ( ) : string => `mock-uuid-${ ++ counter } ` )
1717
1818 // Reset store state before each test
1919 act ( ( ) => {
@@ -86,7 +86,6 @@ describe('chat.store', () => {
8686 } )
8787
8888 expect ( chatStore . getState ( ) . chatMessages ) . toHaveLength ( 2 )
89- const oldThreadId = chatStore . getState ( ) . threadId
9089
9190 // Clear conversation
9291 act ( ( ) => {
You can’t perform that action at this time.
0 commit comments