diff --git a/www/__mocks__/cordovaMocks.ts b/www/__mocks__/cordovaMocks.ts index 923f29752..60ea4e0c1 100644 --- a/www/__mocks__/cordovaMocks.ts +++ b/www/__mocks__/cordovaMocks.ts @@ -128,7 +128,7 @@ export const mockBEMUserCache = (config?) => { ); }, 100), ); - }, // Used for getUnifiedDataForInterval + }, // Used for getUnifiedDataForInterval putRWDocument: (key: string, value: any) => { if (key == 'config/app_ui_config') { return new Promise((rs, rj) => diff --git a/www/__mocks__/timelineHelperMocks.ts b/www/__mocks__/timelineHelperMocks.ts index 78a217ead..b18c2854a 100644 --- a/www/__mocks__/timelineHelperMocks.ts +++ b/www/__mocks__/timelineHelperMocks.ts @@ -43,10 +43,7 @@ const mockConfirmedPlaceData: ConfirmedPlace = { ending_trip: null, enter_local_dt: null, exit_local_dt: null, - raw_places: [ - null, - null, - ], + raw_places: [null, null], enter_ts: 1437578093.881, exit_ts: 1437578093.881, }; @@ -241,8 +238,8 @@ export const mockConfigEnketo: AppConfig = { server: null, survey_info: { 'trip-labels': 'ENKETO', - surveys: { - TripConfirmSurvey: { + surveys: { + TripConfirmSurvey: { compatibleWith: 1.2, formPath: null, labelTemplate: null, diff --git a/www/__tests__/timelineHelper.test.ts b/www/__tests__/timelineHelper.test.ts index b93015b13..83b25be01 100644 --- a/www/__tests__/timelineHelper.test.ts +++ b/www/__tests__/timelineHelper.test.ts @@ -91,8 +91,8 @@ describe('compositeTrips2TimelineMap', () => { it('Works with a list of len >= 1, with flag', () => { testValue = compositeTrips2TimelineMap(tripListTwo, true); expect(testValue.size).toBe(6); - for (const [key,value] of Object.entries(testValue)) { - expect(value).toBe(tripListTwo[0][key] || tripListTwo[1][key]) + for (const [key, value] of Object.entries(testValue)) { + expect(value).toBe(tripListTwo[0][key] || tripListTwo[1][key]); } }); });