update test

This commit is contained in:
Stephen Zhou 2025-12-29 12:20:10 +08:00
parent 9cd5712faf
commit bc0495d8f9
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ vi.mock('react-i18next', () => ({
return `${prefix}${key}`
},
}),
Trans: ({ i18nKey }: { i18nKey: string }) => <span>{i18nKey}</span>,
Trans: ({ i18nKey, ns }: { i18nKey: string, ns?: string }) => <span>{ns ? `${ns}.${i18nKey}` : i18nKey}</span>,
}))
vi.mock('../../../../base/toast', () => ({

View File

@ -12,7 +12,7 @@ vi.mock('react-i18next', () => ({
return `${prefix}${key}`
},
}),
Trans: ({ i18nKey }: { i18nKey: string }) => <span>{i18nKey}</span>,
Trans: ({ i18nKey, ns }: { i18nKey: string, ns?: string }) => <span>{ns ? `${ns}.${i18nKey}` : i18nKey}</span>,
}))
describe('SelfHostedPlanItem/List', () => {