mirror of
https://github.com/immich-app/immich.git
synced 2025-05-24 01:12:58 -04:00
fix(web): time zone dependent test (#13859)
This commit is contained in:
parent
b238b69689
commit
0b98c5e3c4
@ -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', () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user