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() +}