Skip to content

Commit

Permalink
test(lib-user): broken date range tests (#6392)
Browse files Browse the repository at this point in the history
Add missing time zones to the date range tests, so that they pass in all time zones.
  • Loading branch information
eatyourgreens authored Oct 17, 2024
1 parent 1d5dc0a commit 9022a32
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ describe('components > MainContent > getDateRangeSelectOptions', function () {
describe('with a custom date range', function () {

beforeEach(function () {
clock = sinon.useFakeTimers(new Date('2023-04-15T00:00:00'))
clock = sinon.useFakeTimers(new Date('2023-04-15T00:00:00Z'))
})

afterEach(function () {
Expand Down Expand Up @@ -223,7 +223,7 @@ describe('components > MainContent > getDateRangeSelectOptions', function () {
describe('with a source created_at date', function () {

beforeEach(function () {
clock = sinon.useFakeTimers(new Date('2023-04-15T00:00:00'))
clock = sinon.useFakeTimers(new Date('2023-04-15T00:00:00Z'))
})

afterEach(function () {
Expand Down

0 comments on commit 9022a32

Please sign in to comment.