From 26b12ae17127b1ffaca78b207e4d24819090f7d3 Mon Sep 17 00:00:00 2001 From: Paul Lancaster Date: Wed, 25 Sep 2024 20:10:08 +0100 Subject: [PATCH] Another test for get chunk indexes --- .../shared-state/async-apply-external-event-sources.ts | 10 +++++----- tests/get-chunk-indexes.test.ts | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/read-models/shared-state/async-apply-external-event-sources.ts b/src/read-models/shared-state/async-apply-external-event-sources.ts index 9d0704ae..4c42f9da 100644 --- a/src/read-models/shared-state/async-apply-external-event-sources.ts +++ b/src/read-models/shared-state/async-apply-external-event-sources.ts @@ -191,11 +191,11 @@ export const asyncApplyExternalEventSources = ( googleHelpers.value, equipment, updateState - )(), - logger.info( - 'Finished pulling events from google training sheet for %s', - equipment.name - ); + ); + logger.info( + 'Finished pulling events from google training sheet for %s', + equipment.name + ); } } logger.info('Finished applying external event sources'); diff --git a/tests/get-chunk-indexes.test.ts b/tests/get-chunk-indexes.test.ts index 7227ecd0..1af51139 100644 --- a/tests/get-chunk-indexes.test.ts +++ b/tests/get-chunk-indexes.test.ts @@ -15,6 +15,7 @@ describe('Get chunk indexes', () => { ], ], [2, 1, 500, []], + [1000, 2, 500, []], ].forEach(([start, end, chunkSize, expected]) => { it(`${start.toString()}:${end.toString()}:${chunkSize.toString()}`, () => { expect(