devextreme
Version:
JavaScript/TypeScript Component Suite for Responsive Web Development
29 lines (28 loc) • 995 B
JavaScript
/**
* DevExtreme (esm/__internal/scheduler/m_utils_time_zone.santiago.test.js)
* Version: 25.2.8
* Build date: Mon Jun 08 2026
*
* Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
import {
describe,
expect,
it
} from "@jest/globals";
import timeZoneUtils from "./m_utils_time_zone";
describe("isLocalTimeMidnightDST", () => {
it("should return false for summer DST", () => {
const date = new Date(2025, 3, 6);
expect(timeZoneUtils.isLocalTimeMidnightDST(date)).toBe(false)
});
it("should return false for no DST", () => {
const date = new Date(2025, 6, 1);
expect(timeZoneUtils.isLocalTimeMidnightDST(date)).toBe(false)
});
it("should return true for winter DST", () => {
const date = new Date(2025, 8, 7);
expect(timeZoneUtils.isLocalTimeMidnightDST(date)).toBe(true)
})
});