fix: multiple file upload, locales, tests (#779)

This commit is contained in:
2023-05-07 02:59:01 +02:00
committed by GitHub
parent c30e726fb1
commit a254e504c9
32 changed files with 46 additions and 687 deletions

View File

@ -3,13 +3,13 @@ import { localToUTC, utcToLocal } from '../utc.util';
describe('utc util', () => {
it('converts local (Hawaii time) to UTC', () => {
expect(localToUTC(new Date(2023, 1, 12, 10, 5, 35)).toString()).toEqual(
'Sun Feb 12 2023 20:05:35 GMT-1000 (Hawaii-Aleutian Standard Time)',
new Date(2023, 1, 12, 20, 5, 35).toString(),
);
});
it('converts UTC to local (Hawaii time)', () => {
expect(utcToLocal(new Date(2023, 1, 12, 15, 5, 35)).toString()).toEqual(
'Sun Feb 12 2023 05:05:35 GMT-1000 (Hawaii-Aleutian Standard Time)',
new Date(2023, 1, 12, 5, 5, 35).toString(),
);
});
});