From 6924965cca2f86eb0718bbb6335b2b99030489f3 Mon Sep 17 00:00:00 2001 From: Jens Maus Date: Sun, 1 Sep 2024 21:34:50 +0200 Subject: [PATCH] more tests --- test/test-async.js | 6 +++++- test/test.js | 9 +++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/test/test-async.js b/test/test-async.js index 62e110b..220bd08 100644 --- a/test/test-async.js +++ b/test/test-async.js @@ -5,10 +5,14 @@ ** */ process.env.TZ = 'America/San_Francisco'; +const moment = require('moment-timezone'); +/* Setup moment timezone defaults */ +moment.tz.link('Etc/Unknown|Etc/GMT'); +moment.tz.setDefault('America/San_Francisco'); + const assert = require('assert'); const vows = require('vows'); const _ = require('underscore'); -const moment = require('moment-timezone'); const ical = require('../node-ical.js'); console.log('START Async Tests'); diff --git a/test/test.js b/test/test.js index 95cbf26..c59265f 100644 --- a/test/test.js +++ b/test/test.js @@ -5,15 +5,16 @@ ** */ process.env.TZ = 'America/San_Francisco'; +const moment = require('moment-timezone'); +/* Setup moment timezone defaults */ +moment.tz.link('Etc/Unknown|Etc/GMT'); +moment.tz.setDefault('America/San_Francisco'); + const assert = require('assert'); const vows = require('vows'); const _ = require('underscore'); -const moment = require('moment-timezone'); const ical = require('../node-ical.js'); -/* Fix missing Etc/Unknown on Windows tests */ -moment.tz.link('Etc/Unknown|Etc/GMT'); - vows .describe('node-ical') .addBatch({