12 lines
397 B
TypeScript
12 lines
397 B
TypeScript
import { describe, expect, it } from 'vitest';
|
|
import { bucharestClock } from '@/lib/operations';
|
|
|
|
describe('bucharestClock', () => {
|
|
it('formats HH:MM in Europe/Bucharest', () => {
|
|
expect(bucharestClock(new Date('2026-01-15T10:05:00Z'))).toBe('12:05');
|
|
});
|
|
it('follows daylight saving time', () => {
|
|
expect(bucharestClock(new Date('2026-07-15T10:05:00Z'))).toBe('13:05');
|
|
});
|
|
});
|