From b8c9bffc2ec2f8172e233940f4fbd4531e56d081 Mon Sep 17 00:00:00 2001 From: Tom Jenkinson Date: Wed, 13 Dec 2023 23:50:00 +0000 Subject: [PATCH] Fix exception date-time test (#262) --- test/pipeline/format.spec.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/pipeline/format.spec.js b/test/pipeline/format.spec.js index 06cb2b6..353ac74 100644 --- a/test/pipeline/format.spec.js +++ b/test/pipeline/format.spec.js @@ -308,7 +308,7 @@ describe('pipeline.formatEvent', () => { date1.setUTCFullYear(2000); date1.setUTCMonth(6); date1.setUTCDate(20); - date1.setUTCHours(2); + date1.setUTCHours(1); date1.setUTCMinutes(0); date1.setUTCSeconds(0); @@ -321,8 +321,8 @@ describe('pipeline.formatEvent', () => { uid: 'uid', timestamp: 'timestamp', exclusionDates: [ - [date1.getUTCFullYear(), date1.getUTCMonth(), date1.getUTCDate(), date1.getUTCHours(), date1.getUTCMinutes(), date1.getUTCSeconds()], - [date2.getUTCFullYear(), date2.getUTCMonth(), date2.getUTCDate(), date2.getUTCHours(), date2.getUTCMinutes(), date2.getUTCSeconds()] + [date1.getFullYear(), date1.getMonth(), date1.getDate(), date1.getHours(), date1.getMinutes(), date1.getSeconds()], + [date2.getFullYear(), date2.getMonth(), date2.getDate(), date2.getHours(), date2.getMinutes(), date2.getSeconds()] ] }) expect(formattedEvent).to.contain('EXDATE:20000620T010000Z,20000621T010000Z')