Formatting

This commit is contained in:
Pieter Vander Vennet 2023-01-29 17:46:44 +01:00
parent 387fff72cd
commit 27dc688ea2
2 changed files with 5 additions and 3 deletions

View file

@ -143,7 +143,7 @@ class UserInformationMainPanel extends VariableUiElement {
return replaced === simplifiedName return replaced === simplifiedName
} }
) )
if(isTranslator){ if (isTranslator) {
amendedPrefs.data["_translation_contributions"] = "" + isTranslator.commits amendedPrefs.data["_translation_contributions"] = "" + isTranslator.commits
} }
const isCodeContributor = codeContributors.contributors.find( const isCodeContributor = codeContributors.contributors.find(
@ -152,7 +152,7 @@ class UserInformationMainPanel extends VariableUiElement {
return replaced === simplifiedName return replaced === simplifiedName
} }
) )
if(isCodeContributor){ if (isCodeContributor) {
amendedPrefs.data["_code_contributions"] = "" + isCodeContributor.commits amendedPrefs.data["_code_contributions"] = "" + isCodeContributor.commits
} }
amendedPrefs.ping() amendedPrefs.ping()

View file

@ -7609,7 +7609,9 @@ describe("GenerateCache", () => {
]) ])
await ScriptUtils.sleep(250) await ScriptUtils.sleep(250)
const birdhides = JSON.parse( 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(birdhides.features.length).deep.equal(5)
expect( expect(