From bc0495d8f9686e1207062f026684a4d7a7e2c9f2 Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Mon, 29 Dec 2025 12:20:10 +0800 Subject: [PATCH] update test --- .../billing/pricing/plans/self-hosted-plan-item/index.spec.tsx | 2 +- .../pricing/plans/self-hosted-plan-item/list/index.spec.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/components/billing/pricing/plans/self-hosted-plan-item/index.spec.tsx b/web/app/components/billing/pricing/plans/self-hosted-plan-item/index.spec.tsx index cf2cde82f6..d4160ffbcf 100644 --- a/web/app/components/billing/pricing/plans/self-hosted-plan-item/index.spec.tsx +++ b/web/app/components/billing/pricing/plans/self-hosted-plan-item/index.spec.tsx @@ -22,7 +22,7 @@ vi.mock('react-i18next', () => ({ return `${prefix}${key}` }, }), - Trans: ({ i18nKey }: { i18nKey: string }) => {i18nKey}, + Trans: ({ i18nKey, ns }: { i18nKey: string, ns?: string }) => {ns ? `${ns}.${i18nKey}` : i18nKey}, })) vi.mock('../../../../base/toast', () => ({ diff --git a/web/app/components/billing/pricing/plans/self-hosted-plan-item/list/index.spec.tsx b/web/app/components/billing/pricing/plans/self-hosted-plan-item/list/index.spec.tsx index 1399c2c390..5bb37e9712 100644 --- a/web/app/components/billing/pricing/plans/self-hosted-plan-item/list/index.spec.tsx +++ b/web/app/components/billing/pricing/plans/self-hosted-plan-item/list/index.spec.tsx @@ -12,7 +12,7 @@ vi.mock('react-i18next', () => ({ return `${prefix}${key}` }, }), - Trans: ({ i18nKey }: { i18nKey: string }) => {i18nKey}, + Trans: ({ i18nKey, ns }: { i18nKey: string, ns?: string }) => {ns ? `${ns}.${i18nKey}` : i18nKey}, })) describe('SelfHostedPlanItem/List', () => {