From 27dc688ea277e1a0994103b8a779251415e50f9f Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Sun, 29 Jan 2023 17:46:44 +0100 Subject: [PATCH] Formatting --- UI/BigComponents/UserInformation.ts | 4 ++-- test/scripts/GenerateCache.spec.ts | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/UI/BigComponents/UserInformation.ts b/UI/BigComponents/UserInformation.ts index a552cbd6e..640bd278e 100644 --- a/UI/BigComponents/UserInformation.ts +++ b/UI/BigComponents/UserInformation.ts @@ -143,7 +143,7 @@ class UserInformationMainPanel extends VariableUiElement { return replaced === simplifiedName } ) - if(isTranslator){ + if (isTranslator) { amendedPrefs.data["_translation_contributions"] = "" + isTranslator.commits } const isCodeContributor = codeContributors.contributors.find( @@ -152,7 +152,7 @@ class UserInformationMainPanel extends VariableUiElement { return replaced === simplifiedName } ) - if(isCodeContributor){ + if (isCodeContributor) { amendedPrefs.data["_code_contributions"] = "" + isCodeContributor.commits } amendedPrefs.ping() diff --git a/test/scripts/GenerateCache.spec.ts b/test/scripts/GenerateCache.spec.ts index f108fd6c0..2eb8e708d 100644 --- a/test/scripts/GenerateCache.spec.ts +++ b/test/scripts/GenerateCache.spec.ts @@ -7609,7 +7609,9 @@ describe("GenerateCache", () => { ]) await ScriptUtils.sleep(250) const birdhides = JSON.parse( - readFileSync(dir + "np-cache/natuurpunt_birdhide_12_2085_1368.geojson", { encoding: "utf8" }) + readFileSync(dir + "np-cache/natuurpunt_birdhide_12_2085_1368.geojson", { + encoding: "utf8", + }) ) expect(birdhides.features.length).deep.equal(5) expect(