0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2024-12-31 00:43:56 -05:00

fix(web): time zone dependent test (#13859)

This commit is contained in:
Jason Rasmussen 2024-11-07 10:05:55 -05:00 committed by GitHub
parent b238b69689
commit 0b98c5e3c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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', () => {