From 152a1d60e6d2c98eeb36d5e72b4b69fe8ce03014 Mon Sep 17 00:00:00 2001 From: Eric Arellano Date: Mon, 8 Jul 2024 21:28:01 -0400 Subject: [PATCH 1/2] s/urban/urbanized --- src/js/scorecard.ts | 2 +- tests/app/setUpSite.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/scorecard.ts b/src/js/scorecard.ts index 48edec8..9725eee 100644 --- a/src/js/scorecard.ts +++ b/src/js/scorecard.ts @@ -23,7 +23,7 @@ const generateScorecard = (entry: ScoreCardDetails): string => { } listEntries.push(`City type: ${entry.cityType}`); listEntries.push(`${entry.population} residents - city proper`); - listEntries.push(`${entry.urbanizedAreaPopulation} residents - urban area`); + listEntries.push(`${entry.urbanizedAreaPopulation} residents - urbanized area`); let reformsLine = `Parking reforms ${entry.reforms}`; if (entry.url) { diff --git a/tests/app/setUpSite.test.ts b/tests/app/setUpSite.test.ts index c30a478..be7fe86 100644 --- a/tests/app/setUpSite.test.ts +++ b/tests/app/setUpSite.test.ts @@ -85,7 +85,7 @@ test("correctly load the city score card", async ({ page }) => { `${albanyExpected.parkingScore}/100 parking score (lower is better)`, `City type: ${albanyExpected.cityType}`, `${albanyExpected.population} residents - city proper`, - `${albanyExpected.urbanizedAreaPopulation} residents - urban area`, + `${albanyExpected.urbanizedAreaPopulation} residents - urbanized area`, `Parking reforms ${albanyExpected.reforms} (details )`, ]); expect(new Set(contentLines)).toEqual(expectedLines); From 30908ac94f3739cf3c64d3be669ef671f22c0182 Mon Sep 17 00:00:00 2001 From: Eric Arellano Date: Mon, 8 Jul 2024 21:39:18 -0400 Subject: [PATCH 2/2] Fix lint --- src/js/scorecard.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/js/scorecard.ts b/src/js/scorecard.ts index 9725eee..92eac90 100644 --- a/src/js/scorecard.ts +++ b/src/js/scorecard.ts @@ -23,7 +23,9 @@ const generateScorecard = (entry: ScoreCardDetails): string => { } listEntries.push(`City type: ${entry.cityType}`); listEntries.push(`${entry.population} residents - city proper`); - listEntries.push(`${entry.urbanizedAreaPopulation} residents - urbanized area`); + listEntries.push( + `${entry.urbanizedAreaPopulation} residents - urbanized area` + ); let reformsLine = `Parking reforms ${entry.reforms}`; if (entry.url) {