-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cbb1eeb
commit 77b719c
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
...twenty-front/src/modules/localization/utils/__tests__/findAvailableTimeZoneOption.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { findAvailableTimeZoneOption } from '@/localization/utils/findAvailableTimeZoneOption'; | ||
|
||
describe('findAvailableTimeZoneOption', () => { | ||
it('should find the matching available IANA time zone select option from a given IANA time zone', () => { | ||
const ianaTimeZone = 'Europe/Paris'; | ||
const expectedOption = { | ||
label: '(GMT+02:00) Central European Summer Time - Paris', | ||
value: 'Europe/Paris', | ||
}; | ||
|
||
const option = findAvailableTimeZoneOption(ianaTimeZone); | ||
|
||
expect(option).toEqual(expectedOption); | ||
}); | ||
}); |