test: check i18n warning messages

This commit is contained in:
Shakker
2026-05-11 16:02:40 +01:00
parent 7bf4458bbe
commit ef6b157389

View File

@@ -134,10 +134,9 @@ describe("i18n", () => {
const fresh = await importFreshTranslate();
expect(fresh.i18n.getLocale()).toBe("en");
expect(warningSpy).not.toHaveBeenCalledWith(
const warningMessages = warningSpy.mock.calls.map((call) => String(call[0]));
expect(warningMessages).not.toContain(
"`--localstorage-file` was provided without a valid path",
expect.anything(),
expect.anything(),
);
});