From 8faddbd0b54234cd702240704ae1c2bbc65d1dfa Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Mon, 27 Jun 2022 23:57:04 +0200 Subject: [PATCH] Fix tests --- scripts/schools/amendSchoolData.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/schools/amendSchoolData.ts b/scripts/schools/amendSchoolData.ts index cfb54de8e..606c6fa88 100644 --- a/scripts/schools/amendSchoolData.ts +++ b/scripts/schools/amendSchoolData.ts @@ -81,6 +81,7 @@ function fuzzIdenticals(features: {geometry: {coordinates: [number,number]}}[]){ /** * Sorts classifications in order + * * sortClassifications(["primary","secondary","kindergarten"] // => ["kindergarten", "primary", "secondary"] */ function sortClassifications(classification: string[]){ @@ -231,4 +232,6 @@ function main() { console.log("Done") } -main() \ No newline at end of file +if(!process.argv[1].endsWith("mocha")){ + main() +}