mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-29 10:50:58 +00:00
test: silence ui localstorage warning
This commit is contained in:
@@ -73,7 +73,7 @@ describe("i18n", () => {
|
||||
vi.resetModules();
|
||||
vi.unstubAllGlobals();
|
||||
vi.stubGlobal("navigator", { language: "en-US" } as Navigator);
|
||||
const warningSpy = vi.spyOn(process, "emitWarning");
|
||||
const warningSpy = vi.spyOn(process, "emitWarning").mockImplementation(() => {});
|
||||
|
||||
const fresh = await import("../lib/translate.ts");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user