mirror of https://github.com/langgenius/dify.git
update test
This commit is contained in:
parent
9cd5712faf
commit
bc0495d8f9
|
|
@ -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', () => ({
|
||||
|
|
|
|||
|
|
@ -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', () => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue