UNPKG

devextreme

Version:

JavaScript/TypeScript Component Suite for Responsive Web Development

31 lines (29 loc) 1.26 kB
/** * DevExtreme (cjs/__internal/scheduler/m_utils_time_zone.santiago.test.js) * Version: 25.2.7 * Build date: Tue May 05 2026 * * Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; var _globals = require("@jest/globals"); var _m_utils_time_zone = _interopRequireDefault(require("./m_utils_time_zone")); function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e } }(0, _globals.describe)("isLocalTimeMidnightDST", () => { (0, _globals.it)("should return false for summer DST", () => { const date = new Date(2025, 3, 6); (0, _globals.expect)(_m_utils_time_zone.default.isLocalTimeMidnightDST(date)).toBe(false) }); (0, _globals.it)("should return false for no DST", () => { const date = new Date(2025, 6, 1); (0, _globals.expect)(_m_utils_time_zone.default.isLocalTimeMidnightDST(date)).toBe(false) }); (0, _globals.it)("should return true for winter DST", () => { const date = new Date(2025, 8, 7); (0, _globals.expect)(_m_utils_time_zone.default.isLocalTimeMidnightDST(date)).toBe(true) }) });