Skip to content

Commit

Permalink
chore(dateutilstest): revert selected timezone change to prevent test…
Browse files Browse the repository at this point in the history
…s failing because of daylight saving time
  • Loading branch information
pac-guerreiro committed Apr 3, 2024
1 parent b50d838 commit cf08e80
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions tests/unit/DateUtilsTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,20 @@ describe('DateUtils', () => {
Onyx.init({
keys: ONYXKEYS,
initialKeyStates: {
[ONYXKEYS.SESSION]: {accountID: 999},
[ONYXKEYS.PERSONAL_DETAILS_LIST]: {'999': {accountID: 999, timezone: {selected: 'Europe/London'}}},
[ONYXKEYS.SESSION]: {
accountID: 999,
},
[ONYXKEYS.PERSONAL_DETAILS_LIST]: {
'999': {
accountID: 999,
timezone: {
// UTC is not recognized as a valid timezone but
// in these tests we want to use it to avoid issues
// because of daylight saving time
selected: UTC as SelectedTimezone,
},
},
},
},
});
return waitForBatchedUpdates();
Expand Down

0 comments on commit cf08e80

Please sign in to comment.