mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-25 00:39:27 +02:00
replace: i18next mocks any vi.fn() calls
This commit is contained in:
parent
906c993ee8
commit
d1257c4c82
@ -31,7 +31,7 @@ vi.mock("i18next", () => ({
|
||||
changeLanguage: () => Promise.resolve(),
|
||||
init: () => Promise.resolve(),
|
||||
resolvedLanguage: "en",
|
||||
exists: vi.fn(() => true),
|
||||
exists: () => true,
|
||||
getDataByLanguage:() => ({
|
||||
en: {
|
||||
keys: ["foo"]
|
||||
@ -39,7 +39,7 @@ vi.mock("i18next", () => ({
|
||||
}),
|
||||
services: {
|
||||
formatter: {
|
||||
add: vi.fn(),
|
||||
add: () => {},
|
||||
}
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user