mirror of
https://github.com/immich-app/immich.git
synced 2025-12-15 17:23:15 +03:00
fix(web): time zone dependent test (#13859)
This commit is contained in:
@@ -5,11 +5,13 @@ import { DateTime } from 'luxon';
|
||||
describe('formatGroupTitle', () => {
|
||||
beforeAll(() => {
|
||||
vi.useFakeTimers();
|
||||
process.env.TZ = 'UTC';
|
||||
vi.setSystemTime(new Date('2024-07-27T12:00:00Z'));
|
||||
});
|
||||
|
||||
afterAll(() => {
|
||||
vi.useRealTimers();
|
||||
delete process.env.TZ;
|
||||
});
|
||||
|
||||
it('formats today', () => {
|
||||
|
||||
Reference in New Issue
Block a user