give parseDate test more time (#278)

The time it takes parseDate to run depends on how many timezone
names moment knows about.
This commit is contained in:
Paul Fitzpatrick 2022-09-09 17:05:29 -04:00 committed by GitHub
parent 8bc5c7d595
commit bd9ede9d13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -331,6 +331,7 @@ describe('parseDate', function() {
});
it('should handle datetimes as formatted by moment', function() {
this.timeout(10000); // there may be a LOT of timezone names.
for (const date of ['2020-02-03', '2020-06-07', '2020-10-11']) { // different months for daylight savings
const dateTime = date + ' 12:34:56';
const utcMoment = moment.tz(dateTime, 'UTC');