Skip to content

Commit

Permalink
Ran prettier from www/
Browse files Browse the repository at this point in the history
Was running on `js/`, but not mocks; fixed formatting in mocks and
tests!
  • Loading branch information
the-bay-kay committed Jan 25, 2024
1 parent cdb7138 commit 95d6255
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion www/__mocks__/cordovaMocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<void>((rs, rj) =>
Expand Down
9 changes: 3 additions & 6 deletions www/__mocks__/timelineHelperMocks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions www/__tests__/timelineHelper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
});
});
Expand Down

0 comments on commit 95d6255

Please sign in to comment.