Skip to content

Commit cdbfbb7

Browse files
committed
Revert "test(calendar-web): update test with timezone set to UTC"
This reverts commit af8d6d8.
1 parent af8d6d8 commit cdbfbb7

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

packages/pluggableWidgets/calendar-web/src/__tests__/Calendar.spec.tsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,6 @@ import { ListValueBuilder } from "@mendix/widget-plugin-test-utils";
44

55
import Calendar from "../Calendar";
66
import { CalendarContainerProps } from "../../typings/CalendarProps";
7-
8-
// We capture any existing value, switch to UTC, and restore the original value
9-
// when the suite finishes.
10-
11-
const ORIGINAL_TZ = process.env.TZ;
12-
process.env.TZ = "UTC";
13-
147
const customViewProps: CalendarContainerProps = {
158
name: "calendar-test",
169
class: "calendar-class",
@@ -56,10 +49,6 @@ beforeAll(() => {
5649

5750
afterAll(() => {
5851
jest.useRealTimers();
59-
60-
// Restore whatever time-zone the process was originally using so other
61-
// test files are unaffected.
62-
process.env.TZ = ORIGINAL_TZ;
6352
});
6453

6554
describe("Calendar", () => {

0 commit comments

Comments
 (0)