diff --git a/test/ReactViews/Workbench/Controls/DateTimeSelectorSectionSpec.tsx b/test/ReactViews/Workbench/Controls/DateTimeSelectorSectionSpec.tsx index 5980374064b..610fceec021 100644 --- a/test/ReactViews/Workbench/Controls/DateTimeSelectorSectionSpec.tsx +++ b/test/ReactViews/Workbench/Controls/DateTimeSelectorSectionSpec.tsx @@ -38,10 +38,9 @@ describe("DateTimeSelectorSection", function () { it("A datetime selector is rendered", 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-01T00:00:00.000Z") - ); + + // the date will default this "2014-01-01T00:00:00.000Z" to the isoDate format + const expectedDateStr = "2014-01-01"; expect(currentDateBtn.children[0].children[0].children[0]).toEqual( expectedDateStr