Skip to content

Commit 051cba0

Browse files
committed
adjust unit tests for date range extent change
1 parent 6bb6e88 commit 051cba0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

test/report_test.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ describe('report', () => {
473473
.add(1, 'day');
474474
expectedStartDate = moment('2022-06-25T00:00:00.000Z')
475475
.tz('UTC')
476+
.add(1, 'day')
476477
.startOf('day');
477478
});
478479
it('should set agp start and end dates', () => {
@@ -520,13 +521,13 @@ describe('report', () => {
520521
it('should set agp start and end 15 days apart', () => {
521522
deepEqual(
522523
dateRange.agp.endDate.diff(dateRange.agp.startDate, 'days'),
523-
16,
524+
15,
524525
);
525526
});
526527
it('should set daily start and end 15 days apart', () => {
527528
deepEqual(
528529
dateRange.daily.endDate.diff(dateRange.daily.startDate, 'days'),
529-
16,
530+
15,
530531
);
531532
});
532533
it('should set bgLog start and end 30 days apart', () => {
@@ -538,7 +539,7 @@ describe('report', () => {
538539
it('should set basics start and end dates 15 days apart', () => {
539540
deepEqual(
540541
dateRange.basics.endDate.diff(dateRange.basics.startDate, 'days'),
541-
16,
542+
15,
542543
);
543544
});
544545
});
@@ -578,7 +579,7 @@ describe('report', () => {
578579
it('should set printOptions', () => {
579580
const expectedPrintOpts = {
580581
endpoints: [
581-
moment('2022-06-24T12:00:00.000Z').toDate(),
582+
moment('2022-06-25T12:00:00.000Z').toDate(),
582583
moment('2022-07-25T12:00:00.000Z').toDate(),
583584
],
584585
disabled: false,

0 commit comments

Comments
 (0)