From b4e68c1d7b6f4f85ed791637064359a84ebc281c Mon Sep 17 00:00:00 2001 From: tjtanjin Date: Fri, 4 Oct 2024 01:01:37 +0800 Subject: [PATCH] test: Update test chatbot mock --- .../{TestChatBotProvider.tsx => TestChatBotContext.tsx} | 2 +- __tests__/hooks/useAudioInternal.test.ts | 2 +- __tests__/hooks/useChatHistoryInternal.test.ts | 2 +- __tests__/hooks/useChatWindowInternal.test.ts | 2 +- __tests__/hooks/useNotificationsInternal.test.ts | 2 +- __tests__/hooks/useVoiceInternal.test.ts | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) rename __tests__/__mocks__/{TestChatBotProvider.tsx => TestChatBotContext.tsx} (96%) diff --git a/__tests__/__mocks__/TestChatBotProvider.tsx b/__tests__/__mocks__/TestChatBotContext.tsx similarity index 96% rename from __tests__/__mocks__/TestChatBotProvider.tsx rename to __tests__/__mocks__/TestChatBotContext.tsx index 7fd4abaa..49f50626 100644 --- a/__tests__/__mocks__/TestChatBotProvider.tsx +++ b/__tests__/__mocks__/TestChatBotContext.tsx @@ -6,7 +6,7 @@ import { BotRefsProvider } from '../../src/context/BotRefsContext'; import { BotStatesProvider } from '../../src/context/BotStatesContext'; import { PathsProvider } from '../../src/context/PathsContext'; import { MessagesProvider } from '../../src/context/MessagesContext'; -import { ChatBotProviderContextType } from '../../src/context/ChatBotProvider'; +import { ChatBotProviderContextType } from '../../src/context/ChatBotContext'; import { Settings } from '../../src/types/Settings'; import { Styles } from '../../src/types/Styles'; import { DefaultStyles } from '../../src/constants/internal/DefaultStyles'; diff --git a/__tests__/hooks/useAudioInternal.test.ts b/__tests__/hooks/useAudioInternal.test.ts index a460005f..66f240cd 100644 --- a/__tests__/hooks/useAudioInternal.test.ts +++ b/__tests__/hooks/useAudioInternal.test.ts @@ -4,7 +4,7 @@ import { useAudioInternal } from "../../src/hooks/internal/useAudioInternal"; import { useRcbEventInternal } from "../../src/hooks/internal/useRcbEventInternal"; import { RcbEvent } from "../../src/constants/RcbEvent"; -import { TestChatBotProvider } from "../__mocks__/TestChatBotProvider"; +import { TestChatBotProvider } from "../__mocks__/TestChatBotContext"; import { MockDefaultSettings } from "../__mocks__/constants"; // mocks internal hooks diff --git a/__tests__/hooks/useChatHistoryInternal.test.ts b/__tests__/hooks/useChatHistoryInternal.test.ts index e2c1c43f..d4a936d7 100644 --- a/__tests__/hooks/useChatHistoryInternal.test.ts +++ b/__tests__/hooks/useChatHistoryInternal.test.ts @@ -6,7 +6,7 @@ import { useChatHistoryInternal } from "../../src/hooks/internal/useChatHistoryI import { useRcbEventInternal } from "../../src/hooks/internal/useRcbEventInternal"; import { RcbEvent } from "../../src/constants/RcbEvent"; -import { TestChatBotProvider } from "../__mocks__/TestChatBotProvider"; +import { TestChatBotProvider } from "../__mocks__/TestChatBotContext"; import { MockDefaultSettings } from "../__mocks__/constants"; // mocks internal hooks and services diff --git a/__tests__/hooks/useChatWindowInternal.test.ts b/__tests__/hooks/useChatWindowInternal.test.ts index 4dcab756..ef6b1790 100644 --- a/__tests__/hooks/useChatWindowInternal.test.ts +++ b/__tests__/hooks/useChatWindowInternal.test.ts @@ -4,7 +4,7 @@ import { useChatWindowInternal } from "../../src/hooks/internal/useChatWindowInt import { useRcbEventInternal } from "../../src/hooks/internal/useRcbEventInternal"; import { RcbEvent } from "../../src/constants/RcbEvent"; -import { TestChatBotProvider } from "../__mocks__/TestChatBotProvider"; +import { TestChatBotProvider } from "../__mocks__/TestChatBotContext"; import { MockDefaultSettings } from "../__mocks__/constants"; // mocks internal hooks and services diff --git a/__tests__/hooks/useNotificationsInternal.test.ts b/__tests__/hooks/useNotificationsInternal.test.ts index 3dad4e88..45a23685 100644 --- a/__tests__/hooks/useNotificationsInternal.test.ts +++ b/__tests__/hooks/useNotificationsInternal.test.ts @@ -4,7 +4,7 @@ import { useNotificationInternal } from "../../src/hooks/internal/useNotificatio import { useRcbEventInternal } from "../../src/hooks/internal/useRcbEventInternal"; import { RcbEvent } from "../../src/constants/RcbEvent"; -import { TestChatBotProvider } from "../__mocks__/TestChatBotProvider"; +import { TestChatBotProvider } from "../__mocks__/TestChatBotContext"; import { MockDefaultSettings } from "../__mocks__/constants"; // mocks internal hooks and services diff --git a/__tests__/hooks/useVoiceInternal.test.ts b/__tests__/hooks/useVoiceInternal.test.ts index 26e44aec..7bc92cdd 100644 --- a/__tests__/hooks/useVoiceInternal.test.ts +++ b/__tests__/hooks/useVoiceInternal.test.ts @@ -5,7 +5,7 @@ import { useVoiceInternal } from "../../src/hooks/internal/useVoiceInternal"; import { useRcbEventInternal } from "../../src/hooks/internal/useRcbEventInternal"; import { RcbEvent } from "../../src/constants/RcbEvent"; -import { TestChatBotProvider } from "../__mocks__/TestChatBotProvider"; +import { TestChatBotProvider } from "../__mocks__/TestChatBotContext"; import { MockDefaultSettings } from "../__mocks__/constants"; // mocks internal hooks and services