Skip to content

Commit

Permalink
update spec for date check
Browse files Browse the repository at this point in the history
  • Loading branch information
sixlighthouses committed Jul 13, 2023
1 parent ec05a2b commit 1d404b8
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1d404b8

Please sign in to comment.