Skip to content

Commit ca4b567

Browse files
committed
Fix type
1 parent 40329db commit ca4b567

File tree

1 file changed

+2
-3
lines changed
  • src/Elastic.Documentation.Site/Assets/web-components/SearchOrAskAi/AskAi

1 file changed

+2
-3
lines changed

src/Elastic.Documentation.Site/Assets/web-components/SearchOrAskAi/AskAi/chat.store.test.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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

1212
describe('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(() => {

0 commit comments

Comments
 (0)