mirror of
https://github.com/n8n-io/n8n.git
synced 2026-10-17 13:39:44 +02:00
test(editor): Mock i18n in channel tests
This commit is contained in:
parent
eedd99ea68
commit
81c19ceaaa
|
|
@ -8,6 +8,7 @@ vi.mock('@n8n/i18n', () => ({
|
|||
useI18n: () => ({
|
||||
baseText: (key: string) => key,
|
||||
}),
|
||||
i18n: { baseText: (key: string) => key },
|
||||
}));
|
||||
|
||||
const catalog = ref([
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ const mocks = vi.hoisted(() => {
|
|||
|
||||
vi.mock('@n8n/i18n', () => ({
|
||||
useI18n: () => ({ baseText: (k: string) => k }),
|
||||
i18n: { baseText: (k: string) => k },
|
||||
}));
|
||||
|
||||
vi.mock('@n8n/stores/useRootStore', () => ({
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user