Skip to content

Commit

Permalink
Add tests to pass coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesBochet committed Oct 13, 2024
1 parent cbb1eeb commit 77b719c
Showing 1 changed file with 15 additions and 0 deletions.
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);
});
});

0 comments on commit 77b719c

Please sign in to comment.