chore: replace all cn comments of fe to en version by volc api (#320)

This commit is contained in:
tecvan
2025-07-31 10:32:15 +08:00
committed by GitHub
parent 716ec0cba8
commit 71f6245a01
2960 changed files with 15545 additions and 15545 deletions

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { vi, beforeEach, describe, it, expect } from 'vitest';
import { logger } from '@coze-arch/logger';
@@ -36,7 +36,6 @@ vi.mock('@coze-arch/logger', () => ({
},
}));
describe('bot-tea', () => {
const mockLocation = 'https://example.com/test';
const mockSessionStorage = {
@@ -101,7 +100,7 @@ describe('bot-tea', () => {
const mockParams = { foo: 'bar' };
it('should send event with UG params when FEATURE_ENABLE_TEA_UG is true', () => {
// @ts-expect-error - 模拟全局变量
// @ts-expect-error - simulate global variables
window.FEATURE_ENABLE_TEA_UG = true;
const savedUrl = 'https://example.com/saved';
mockSessionStorage.getItem.mockReturnValue(savedUrl);
@@ -125,7 +124,7 @@ describe('bot-tea', () => {
});
it('should send event without UG params when FEATURE_ENABLE_TEA_UG is false', () => {
// @ts-expect-error - 模拟全局变量
// @ts-expect-error - simulate global variables
window.FEATURE_ENABLE_TEA_UG = false;
sendTeaEvent(mockEvent, mockParams);
@@ -140,7 +139,7 @@ describe('bot-tea', () => {
});
it('should handle undefined params', () => {
// @ts-expect-error - 模拟全局变量
// @ts-expect-error - simulate global variables
window.FEATURE_ENABLE_TEA_UG = false;
sendTeaEvent(mockEvent);