Files
ad/tests/unit/ad/infrastructure/timezone-finder.spec.ts
2024-02-16 16:02:04 +01:00

15 lines
560 B
TypeScript

import { TimezoneFinder } from '@modules/ad/infrastructure/timezone-finder';
describe('Timezone Finder', () => {
it('should be defined', () => {
const timezoneFinder: TimezoneFinder = new TimezoneFinder();
expect(timezoneFinder).toBeDefined();
});
it('should get timezone for Nancy(France) as Europe/Paris', () => {
const timezoneFinder: TimezoneFinder = new TimezoneFinder();
const timezones = timezoneFinder.timezones(6.179373, 48.687913);
expect(timezones.length).toBe(1);
expect(timezones[0]).toBe('Europe/Paris');
});
});