Skip to content

Commit ae26794

Browse files
committed
Fix tests
1 parent e563ac1 commit ae26794

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

src/Elastic.Documentation.Site/Assets/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@import 'tailwindcss';
2-
@config "../tailwind.config.js";
2+
@config '../tailwind.config.js';
33

44
@import './fonts.css';
55
@import './theme.css';

src/Elastic.Documentation.Site/Assets/web-components/SearchOrAskAi/AskAi/Chat.test.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ jest.mock('./chat.store', () => ({
99
getState: jest.fn(),
1010
},
1111
useChatMessages: jest.fn(() => []),
12+
useAiProvider: jest.fn(() => 'LlmGateway'),
1213
useChatActions: jest.fn(() => ({
1314
submitQuestion: jest.fn(),
1415
clearChat: jest.fn(),
16+
setAiProvider: jest.fn(),
1517
})),
1618
}))
1719

src/Elastic.Documentation.Site/Assets/web-components/SearchOrAskAi/Search/Search.test.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jest.mock('../AskAi/chat.store', () => ({
2626
useChatActions: jest.fn(() => ({
2727
submitQuestion: jest.fn(),
2828
clearChat: jest.fn(),
29+
setAiProvider: jest.fn(),
2930
})),
3031
}))
3132

@@ -66,6 +67,7 @@ describe('Search Component', () => {
6667
mockUseChatActions.mockReturnValue({
6768
submitQuestion: mockSubmitQuestion,
6869
clearChat: mockClearChat,
70+
setAiProvider: jest.fn(),
6971
})
7072
mockUseModalActions.mockReturnValue({
7173
setModalMode: mockSetModalMode,

0 commit comments

Comments
 (0)