mirror of
https://github.com/Horizontal42/summarum.git
synced 2026-11-11 01:02:01 +03:00
Merge 574c1074b2 into 37cfd2144b
This commit is contained in:
commit
1ec981dcb8
1 changed files with 2 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ describe("datetime", () => {
|
|||
|
||||
const mockDateTimeFormat = vi.spyOn(Intl, "DateTimeFormat").mockImplementation(() => ({
|
||||
formatToParts: mockFormatToParts,
|
||||
}) as any);
|
||||
}) as unknown as Intl.DateTimeFormat);
|
||||
|
||||
expect(detectDateOrder()).toBe("dmy");
|
||||
mockDateTimeFormat.mockRestore();
|
||||
|
|
@ -40,7 +40,7 @@ describe("datetime", () => {
|
|||
const mockResolvedOptions = vi.fn().mockReturnValue({ timeZone: "America/Los_Angeles" });
|
||||
const mockDateTimeFormat = vi.spyOn(Intl, "DateTimeFormat").mockImplementation(() => ({
|
||||
resolvedOptions: mockResolvedOptions,
|
||||
}) as any);
|
||||
}) as unknown as Intl.DateTimeFormat);
|
||||
|
||||
expect(resolveZone(["local"])).toBe("America/Los_Angeles");
|
||||
mockDateTimeFormat.mockRestore();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue