From 71877bcb2f376ba589449f07e23d5db90366091b Mon Sep 17 00:00:00 2001 From: sixlighthouses Date: Thu, 17 Aug 2023 16:24:14 +1000 Subject: [PATCH] fix date test --- .../Workbench/Controls/DateTimeSelectorSectionSpec.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ReactViews/Workbench/Controls/DateTimeSelectorSectionSpec.tsx b/test/ReactViews/Workbench/Controls/DateTimeSelectorSectionSpec.tsx index fd7aa60cb91..1f986070ea6 100644 --- a/test/ReactViews/Workbench/Controls/DateTimeSelectorSectionSpec.tsx +++ b/test/ReactViews/Workbench/Controls/DateTimeSelectorSectionSpec.tsx @@ -39,7 +39,7 @@ describe("DateTimeSelectorSection", function () { expect(buttons).toBeDefined(); expect(buttons.length).toEqual(5); // Need to do it the longer way because Travis runs in a diff locale - const expectedDateStr = formatDateTime(new Date("2014-01-01")); + const expectedDateStr = "2014-01-01"; expect(currentDateBtn.children[0].children[0].children[0]).toEqual( expectedDateStr