Skip to content

Commit

Permalink
Fix exception date-time test (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjenkinson authored Dec 13, 2023
1 parent a9a90fc commit b8c9bff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/pipeline/format.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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')
Expand Down

0 comments on commit b8c9bff

Please sign in to comment.